Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |