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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Sajid02
Helper I
Helper I

How to get rolling day sales with change in dates

Hi Folks , 

 

Pls help me in getting the solution to get the difference of amout with change in dates .

 

Snip of data :-

Sajid02_2-1677752676661.png

Need data like :-

 

Sajid02_3-1677752806259.png

 

So , as per snip it is clearly visible like with the change in dates , there is only difference amount is showing to next date. It needs to show the movement between each day.

 

Criteria :

The first date will be full balance (B34-B47 in attachment) – but then every other date should show movement between dates (see C34-C47 in attachment)



kindly help me in getting this solved .


 

 

 

 

 

1 ACCEPTED SOLUTION

Last Day = CALCULATE([measure], previousday('Date'[Date]))

diff =[This Day] - [Last Day]

 

 

This step is working.

Many Thanks 

View solution in original post

3 REPLIES 3
Sajid02
Helper I
Helper I

@amitchandak 

Any solution around this

@Sajid02 , Based on what I got, this day vs previous day solution should work

Assume you have measure already

example

This Day = [measure]

This Day = CALCULATE([measure], FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
Last Day = CALCULATE([measure], FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Last Day = CALCULATE([measure], previousday('Date'[Date]))

diff =[This Day] - [Last Day]

 

Day Intelligence - Last day, last noncontinous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

 

Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Last Day = CALCULATE([measure], previousday('Date'[Date]))

diff =[This Day] - [Last Day]

 

 

This step is working.

Many Thanks 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors