Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Guys,
What I would like to get is, each new month to show :
Range of last 6 month (Sale) / Range of last 6 month (Shop 1 - Categories).
Anyone could help please ?
| Month | Sale | Shop 1 - Categories |
| Jan | 1200 | 4 |
| Feb | 1300 | 2 |
| Mar | 800 | 5 |
| Apr | 500 | 4 |
| May | 600 | 4 |
| Jun | 150 | 5 |
| Jul | 12005 | |
Solved! Go to Solution.
Hi, @Anonymous
Please try measure formulas as below:
Measure1 =
SUMX (
TOPN (
6,
FILTER ( ALL ( 'Table' ), 'Table'[ID] <= MAX ( 'Table'[ID] ) ),
'Table'[ID], DESC
),
'Table'[Sale]
)
Measure2 =
SUMX (
TOPN (
6,
FILTER ( ALL ( 'Table' ), 'Table'[ID] <= MAX ( 'Table'[ID] ) ),
'Table'[ID], DESC
),
'Table'[Shop 1 - Categories]
)
Result = [Measure1]/[Measure2]
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
OK I managed to get a bit forward with that :
I added ID column 1 2 3 4 ect.
Hi, @Anonymous
Please try measure formulas as below:
Measure1 =
SUMX (
TOPN (
6,
FILTER ( ALL ( 'Table' ), 'Table'[ID] <= MAX ( 'Table'[ID] ) ),
'Table'[ID], DESC
),
'Table'[Sale]
)
Measure2 =
SUMX (
TOPN (
6,
FILTER ( ALL ( 'Table' ), 'Table'[ID] <= MAX ( 'Table'[ID] ) ),
'Table'[ID], DESC
),
'Table'[Shop 1 - Categories]
)
Result = [Measure1]/[Measure2]
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 12 | |
| 11 |