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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
itsmeshankar1
Regular Visitor

Requirement to get data from another row based on previous day with given date

I have a table where similar data gets pulled in every day. I am in need of getting a graph which represents difference between today's and previous day data ( so 0, if previous date doesnt exist). 

Idea in my mind is to pull previous day data from previous day row and substract with current row data, put it in another column (+/-), present a graph based on that column.

 

First 3 column exist, I need to generate DiffFromPreviousDay, how do I do it?

 

ProjectdateNumbersDiffFromPreviousDay
a28/04/2020100
b28/04/2020210
c28/04/2020230
d28/04/2020210
e28/04/2020220
a29/04/2020100
b29/04/2020221
c29/04/2020230
d29/04/202020-1
e29/04/2020220
1 ACCEPTED SOLUTION
MarcoPessina
Resolver IV
Resolver IV

1 REPLY 1
MarcoPessina
Resolver IV
Resolver IV

Hi @itsmeshankar1 ,

try this sample out:

https://drive.google.com/file/d/1mQERw_bnJPVmo2-mqtY_aT_6RfBTEbuC/view

 

Hope it helps.

Cheers,

Marco

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.