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 PBI Experts,
I have a scenario where I have customer and product dimensions connected to my facts table "Sales" in a star schema.
The 2 dimension tables are not related.
I want to rank my table like below by descending measure and applying rank on each row of the table.
Main goal : Rank measure based on customer and product combination.
My outcome:
Rank = RANKX(SUMMARIZE('Sales','Customer'[Customer],'Product'[Product]),[Sales],,DESC,Dense)
Expectation:
Can someone pls help me here?
I will highly appreciate your help.
Hi @floriangaerner /All,
Meanwhile, I applied some slicers so that I don't get the error for threshold increase.
I have a doubt in the output. My ranking doesn't seem to get update after applying slicer. I sorted the measure DESC in visual but my ranking is not starting from 1,2,3,4 and so on. Its like 0,52 and weird numbers.
Can you pls help me to fix it?
Appreciate your time & help here pls.
Hi @alexa_0028 ,
Could you pls show us your .pbix file?
Remember to remove the confidential information.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
@floriangaerner
thank you so much for your help !!
Indeed, it looks like very promising, and something that should work and suits my requirement.
But when I am running this in my model I am getting error out , maybe due to my large data model and the mode is Direct Query.
So, I tried running it on import mode directly. But still it is so slow to return any result and getting error out too.
Is there any other quicker way to solve this issue? As in excel it is very quick to sort and apply rank, I am not sure why in PBI it is so different.
Hello @alexa_0028 ,
may I propose you a solution:
I've created .pbix file to show the outcome. Based on your description I have following data model:
The tables are filled according to your description.
I assumed that you want to group sales for multiple Customer-Product combinations together.
My proposed measure:
Result:
Please find attached the .pbix file.
Hope I could help!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
72 | |
62 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
62 | |
59 | |
56 |