Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Gikho
Frequent Visitor

Running rate

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.
I ussualy come across the same numbers as my first measure.
How can i make this work?
Thanks.
1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Gikho ,

 

You could replace "ALLSELECTED('Table 1'[Week])" with "ALL('Table 1')" in your second measure.

Here is the result.

2-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Gikho ,

 

You could replace "ALLSELECTED('Table 1'[Week])" with "ALL('Table 1')" in your second measure.

Here is the result.

2-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

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?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.