Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Month on Month Rank Comparison

Hi,

If you could also help me with Month on Month Rank change DAx.. My rank is changing month on month basis for same group.

 

I want to create a measure for Trend and check the Rank difference of this month to last month  (Trend)

 

Last Month Ranking

MonthUnitDivison Ranking checkAverage of Star Rating
FebGroup1213
FebGroup1122.76
FebGroup1032.62
FebGroup942.57
FebGroup852.36
FebGroup762.33
Feb 72.29
FebGroup582.22
FebGroup492.11
Feb 102.06
FebGroup1112
FebGroup2111.95
FebGroup3121.8
FebTBA13 

 

This month ranking

MonthUnitDivison Ranking checkTrend
MarGroup121312
MarGroup1175
MarGroup1041
MarGroup93-1
MarGroup83-2
MarGroup73-3
Mar 4-3
MarGroup5102
MarGroup42-7
Mar 9-1
MarGroup19-2
MarGroup28-3
MarGroup39-3
MarTBA4-9

 

Tend is representing this month to last month rank difference.. I am new in powerbi so not able to apply the Time intellegence function.. 

@harshnathani @Pragati11 

 

Please help.

 

Regards

Uphar

3 REPLIES 3
h1
Regular Visitor

@amitchandak It's not working when I apply the visual filter on table. filter being applied on MTD Rank to get Top 5 

amitchandak
Super User
Super User

@Anonymous , please try like this example. I have not tested this

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))


MTD RANK = Rankx(all(Table[Unit],Table[Divison]),[MTD Sales],,desc,dense)
LMTD RANK = Rankx(all(Table[Unit],Table[Divison]),[last MTD Sales],,desc,dense)

Diff =[MTD RANK] -[LMTD RANK]

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184


Appreciate your Kudos.

Anonymous
Not applicable

Hi @harshnathani , @Greg_Deckler , @Pragati11 , @Mariusz , @amitchandak 

 

Could you please look into the threat. Need your help guys.

 

Regards

Uphar

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors