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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
UrAvgWally
Helper I
Helper I

Run Rate without Dates but by periods and with a slicer for Funder.

Hi All,

 

Could anyone please help me with the following?

 

Basically, I want to calculate a runrate for the following data for example , let is call it RunRateTable:

 

UrAvgWally_1-1661277841046.png

 

Assuming I am in current period 5, and I have a table Setup[CP] which indicates number 5 on the first row. How would I calculate a runrate?

 

There are 13 periods in total and values assigned for each in the Value column of the table, however Period 1 to 5 are actuals 

And Period 6 to 13 are considered future periods. So I would want to replace the values as runrates based on 1-5 performance .

 

Since there the summarized table, is also summarized by funder, the "Periods" are duplicating. If I removed the column funder and summarised it would have been easy, but I really need the column funder to stay, as it links with a table let's say RSKCL[Funder ] , as a relationship which is a slicer for my dashboard.

 

As always, any help would be greatly appreciated!

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @UrAvgWally 
Please try 

RunRate =
VAR RefPeriod =
    MAX ( Setup[CP] )
VAR CurrentPeriod = Table1[PeriodNo]
VAR CurrentValue = Table1[Value]
VAR CurrentFunderTable =
    CALCULATETABLE ( Table1, ALLEXCEPT ( Table1, Table1[Funder] ) )
VAR FilteredTable =
    FILTER ( CurrentFunderTable, Table1[PeriodNo] <= RefPeriod )
VAR RunRate =
    AVERAGEX ( FilteredTable, Table1[Value] )
RETURN
    IF ( CurrentPeriod <= RefPeriod, CurrentValue, RunRate )

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @UrAvgWally 
Please try 

RunRate =
VAR RefPeriod =
    MAX ( Setup[CP] )
VAR CurrentPeriod = Table1[PeriodNo]
VAR CurrentValue = Table1[Value]
VAR CurrentFunderTable =
    CALCULATETABLE ( Table1, ALLEXCEPT ( Table1, Table1[Funder] ) )
VAR FilteredTable =
    FILTER ( CurrentFunderTable, Table1[PeriodNo] <= RefPeriod )
VAR RunRate =
    AVERAGEX ( FilteredTable, Table1[Value] )
RETURN
    IF ( CurrentPeriod <= RefPeriod, CurrentValue, RunRate )

Perfect. You're a star. Thank you so much 🙂

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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