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.
I'm trying to do a cumulative total on a table with no distinct column, Is this possible to include a DISTINCT function in the daxCumm when creating a Rank? This way i can then do a running total based on the rank? please help
Solved! Go to Solution.
Hi @tezeife,
Suppose this is your expected result of Running total.
To achieve that, you need two calculated columns:
Average = 'Running Total'[Value] / CALCULATE ( COUNT ( 'Running Total'[Rank] ), ALLEXCEPT ( 'Running Total', 'Running Total'[Value] ) ) Running value = CALCULATE ( SUM ( 'Running Total'[Average] ), FILTER ( 'Running Total', 'Running Total'[Rank] <= EARLIER ( 'Running Total'[Rank] ) ) )
Best regards,
Yuliana Gu
Hi @tezeife,
Suppose this is your expected result of Running total.
To achieve that, you need two calculated columns:
Average = 'Running Total'[Value] / CALCULATE ( COUNT ( 'Running Total'[Rank] ), ALLEXCEPT ( 'Running Total', 'Running Total'[Value] ) ) Running value = CALCULATE ( SUM ( 'Running Total'[Average] ), FILTER ( 'Running Total', 'Running Total'[Rank] <= EARLIER ( 'Running Total'[Rank] ) ) )
Best regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
118 | |
107 | |
70 | |
70 | |
43 |
User | Count |
---|---|
148 | |
106 | |
104 | |
89 | |
65 |