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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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