March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |