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.
Hello,
I'm trying to get the cumulative rate of a measure without succes.
I have 2 tables with both a week column, and the number of orders on a second column.
I created a measure to get a ratio per week
ratio = DIVIDE(SUM('table 1'[NbOrders]);SUM('table 2'[NbOrders]);0)and then tried a running measure with the built in tools
Running ratio = CALCULATE( [ratio]; FILTER( ALLSELECTED('Table 1'[Week]); ISONORAFTER('Table 1 '[week]; MAX('Table 1'[Week]); DESC) ) )I alos tried different variation from other posts online wherre the Filter fucntion differ, but it doesn't work.
Solved! Go to Solution.
Hi @Gikho ,
You could replace "ALLSELECTED('Table 1'[Week])" with "ALL('Table 1')" in your second measure.
Here is the result.
Hi @Gikho ,
You could replace "ALLSELECTED('Table 1'[Week])" with "ALL('Table 1')" in your second measure.
Here is the result.
Thanks you for the solution !
I added a year column to have the running rate by year, but the results are indentical by year, is there a filter to add in the measure?
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 |
---|---|
108 | |
106 | |
86 | |
77 | |
69 |
User | Count |
---|---|
124 | |
112 | |
94 | |
84 | |
75 |