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