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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
malleshG
Frequent Visitor

how do I compare today with yesterday data dynamically where data in same table

Hi All,

 

I was trying to get solution for below requirement.

 

i was getting daily open orders with append all one month daily open orders report in same table.

malleshG_0-1616251726415.png

and i am making new table with uniq value of last 2 days(3/1 and and 2/1)

malleshG_1-1616251890286.png

 with status today and yesterday.

i am adding calculated column for today status and yesterday status

for today status calculation

completed status- order open 2/1 and not found in 3/1open orders

for new status - order open 3/1 not found in 2/1open orders

in progress avaialble in both dates.

My out put should be like below and it has to be dynamic with my date. if i swith date to 2/1 it has to comapre 2/1 with 1/1 date

 

malleshG_2-1616252063883.png

 

i tried with calculated table but unfortunatly table is taking last date of main table not chnaging based on slicer selection.

 

2 REPLIES 2
Anonymous
Not applicable

HI @malleshG 

Try the DAX "Earlier" function

EARLIER function (DAX) - DAX | Microsoft Docs

Hi Pranith, If i use earlier function in calculated table does it filter the table? dynamically. if i change the date in slicer?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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