The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi All,
Please help me with the correct sum in the table. While using rank I would like to see sum only for selected products. Thx.
Solved! Go to Solution.
I have managed with it already by such measure:
I have managed with it already by such measure:
Hi @termini,
I am not exactly sure why you are using the TopN table but I used these formulas to replicate your data:
Rank by Sales = RANKX('Table','Table'[Value],,DESC)
Rank If = IF('Table'[Rank by Sales]<=3,'Table'[Value])
I used these two along with the Product and Value column and got the right total.
Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Previous Forecasts
unfortunatelly this measure
Rank by Sales = RANKX('Table','Table'[Value],,DESC)
gives me rank of 1 in each line (for each product)
Hi , @termini
For your rankx , you need to use this dax :
Rank by Sales= RANKX( ALL('Table'[product]) ,CALCULATE( SUM('Table'[val])),,DESC)
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
79 | |
77 | |
46 | |
39 |
User | Count |
---|---|
143 | |
115 | |
64 | |
64 | |
53 |