cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Gikho Frequent Visitor
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

Accepted Solutions
Community Support Team
Community Support Team

Re: Running rate

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 more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Running rate

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 more quickly.

View solution in original post

Gikho Frequent Visitor
Frequent Visitor

Re: Running rate

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
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 6 members 3,528 guests
Please welcome our newest community members: