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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
AnalystPower
Helper I
Helper I

Budget Running total forecast with a actual running total to date

Budget vs Actual comparison that I need the actual to stop on today's date vs flatlining. 
 
Capture.PNG

 

Current formula
Actual Running Total = CALCULATE(
CALCULATE(
SUM(ActifyViewCAS[BudDollars]),
FILTER(
ALLSELECTED(ActifyViewCAS),
ActifyViewCAS[Period] <= MAX(ActifyViewCAS[Period]) && ActifyViewCAS[BaseJob]="job value")
1 ACCEPTED SOLUTION

I got it! @AlB  Thank you for helping me think outside the box!
 
Actual Running Total =
IF( TODAY()>=MAX(ActifyViewCAS[Period]),
CALCULATE(
SUM(ActifyViewCAS[ActDollars]),
FILTER(ALLSELECTED(ActifyViewCAS),ActifyViewCAS[Period] <= MAX(ActifyViewCAS[Period]) && ActifyViewCAS[BaseJob]="JOB Num")
)Capture.PNG

 

View solution in original post

2 REPLIES 2
AlB
Super User
Super User

Hi @AnalystPower 

How about something like: 

Actual Running Total =
IF( DateInVisual <= TODAY(), show what you have)

if DateInVisual > TODAY the measure will return blank and that won't be displayed

I got it! @AlB  Thank you for helping me think outside the box!
 
Actual Running Total =
IF( TODAY()>=MAX(ActifyViewCAS[Period]),
CALCULATE(
SUM(ActifyViewCAS[ActDollars]),
FILTER(ALLSELECTED(ActifyViewCAS),ActifyViewCAS[Period] <= MAX(ActifyViewCAS[Period]) && ActifyViewCAS[BaseJob]="JOB Num")
)Capture.PNG

 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.