Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
hi,
apprec any help to create a ranking no (1,2,3,4.....) to the table below:
the month is taken from the calendar table while the 'total crime' measure is simply calculated as follows:
Solved! Go to Solution.
@manvishah17 Thanks for your contribution on this thread.
Hi @hood2media,
I have created a sample PBIX file and applied the same formula as yours to the visual. However, it can return the expected result.I am uncertain about the cause of this issue. Could you kindly provide some sample data from the ‘CrimeData’ table in Text format (excluding any sensitive information)? This would greatly assist in identifying the problem and finding a solution. For instructions on how to share the required information, please refer to the following link:
How to provide sample data in the Power BI Forum
Best Regards
See I also created sample pbix file , and also tried to implement weekday wise rank.
Hope this help.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dear @manvishah17 & @v-yiruan-msft,
pursuant to the earlier responses, i hv found out tht the reason for the inability to get the ranking to b shown properly was bcoz of the sorting order for the month (sorted by monthno) & day name (by dayno) - all of which were initially created in the calendar table thru power query.
hvg flwed the solution fm the flwg webpage, i hv managed to resolve the issue:
Ranking by Month & Year not working with RANKX - DAX / DAX Calculations - Enterprise DNA Forum
i hv also appended blw, the calendar table + the correct report:
---
---
many tks again to both of u fr yr suggestions. they r most apprec.
krgds, -nik
See I also created sample pbix file , and also tried to implement weekday wise rank.
Hope this help.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
tks @manvishah17 & @v-yiruan-msft .
as i'm still on the road / travelling now, pls allow me some time to chk/respond on this later.
krgds, -nik
dear @manvishah17 & @v-yiruan-msft,
pursuant to the earlier responses, i hv found out tht the reason for the inability to get the ranking to b shown properly was bcoz of the sorting order for the month (sorted by monthno) & day name (by dayno) - all of which were initially created in the calendar table thru power query.
hvg flwed the solution fm the flwg webpage, i hv managed to resolve the issue:
Ranking by Month & Year not working with RANKX - DAX / DAX Calculations - Enterprise DNA Forum
i hv also appended blw, the calendar table + the correct report:
---
---
many tks again to both of u fr yr suggestions. they r most apprec.
krgds, -nik
@manvishah17 Thanks for your contribution on this thread.
Hi @hood2media,
I have created a sample PBIX file and applied the same formula as yours to the visual. However, it can return the expected result.I am uncertain about the cause of this issue. Could you kindly provide some sample data from the ‘CrimeData’ table in Text format (excluding any sensitive information)? This would greatly assist in identifying the problem and finding a solution. For instructions on how to share the required information, please refer to the following link:
How to provide sample data in the Power BI Forum
Best Regards
Yes 'sheet 1' is my fact table having all crimes number and dates of them occuring .
Can you tell me more about your error.
Use this measure for your desired output.
hi @manvishah17 ,
is 'sheet1' your fact_table which in my case is 'CrimeData'?
i hv tried that for my 'CrimeData' table but it stil doesn't give the desired result.
krgds, -nik
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
104 | |
69 | |
48 | |
41 | |
34 |
User | Count |
---|---|
164 | |
112 | |
62 | |
54 | |
38 |