How to find & analyze sector rotations?

Sector rotations allow you to analyze the in flow and out flow of money from one sector to another. That is a useful tool as it allows retail traders to gauge where money is flowing, and which sectors are leading and lagging. That information can help us build plays e.g going bullish on stocks in the leading sector and bearish on stocks in the lagging sector.

One such example of sector rotations was the rotation into Energy at the start of 2022, as documented and explained in