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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
MajidShahzad
Frequent Visitor

Please help to show Actual Balance of previous day

MajidShahzad_0-1698059138446.png

also created  measure but its not working .

Measure = CALCULATE(SUM('TREASURY UPDATE'[Actual Balance]),DATEADD('TREASURY UPDATE'[Date],-1,DAY))
 
 

 

4 REPLIES 4
MajidShahzad
Frequent Visitor

Thanks its working now please extend your support .

Measure = CALCULATE(SUM('TREASURY UPDATE'[Actual Balance]), PREVIOUSDAY('TREASURY UPDATE'[Date]))

 

MajidShahzad_0-1698128898647.png

I am facing a problem that off days saturday and sunday its display blank data is there any solution to show last working day (friday) Data and don't  have saturday and sunday row in my sheet 

MajidShahzad_2-1698129767140.png

 

 

MajidShahzad_1-1698129158774.png

 

 

You should add a LASTNONBLANK filter:
Measure =
CALCULATE(
SUM('TREASURY UPDATE'[Actual Balance]),
LASTNONBLANK(''TREASURY UPDATE''[Date],
CALCULATE(SUM('TREASURY UPDATE'[Actual Balance]))
) )

Walter_W2022
Resolver II
Resolver II

Yes, agree with LaurensM03, why do not use PREVIOUSDAY function?
Measure = CALCULATE(SUM('TREASURY UPDATE'[Actual Balance]), PREVIOUSDAY('TREASURY UPDATE'[Date]))

LaurensM03
New Member

what is the error you are receiving? Also instead of the DATEADD function, you could use the PREVIOUSDAY function which is more simple to use 

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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