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! Learn more

Reply
lewgreen
New Member

Datediff, import query, yesterday data versus Today's

Hello All,

 

I am in need of your help. I have a dashboard which is pulling data via import query and I need to find the difference in the ETA yesterday versus today. I do not need the eta today versus yesterday, but rather what the ETA had as the date yesterday.  

 

For instance, if the query yeterday showed 03/31/21 as the ETA, and then today showed 03/27/21, then I need the new column/measure to show 4 as the incremental difference between the 2 queries. I hope this makes sense. 

shipment eta.png

5 REPLIES 5
Anonymous
Not applicable

@lewgreen 
This is really confusing, the difference isn't just 1 between today and yesterday. Or do you have additional dax for yesterday and Today? May create and share a sample pbix link to demonstrate your current situation. 

 

 

Paul Zheng _ Community Support Team

Jihwan_Kim
Super User
Super User

Hi, @lewgreen 

please try the below DAX measure.

 

Differenceindays = DATEDIFF ( SELECTEDVALUE ( ETA[TodayETA]),  SELECTEDVALUE(ETA[YesterdayETA]), DAY )
 
I hope it helped.
 
Did I answer your question? Mark my post as a solution, this will help others!

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hello.

 

Unfortunately this does not solve the problem at hand. The information all lives in the same column that is updated daily. So I do not have a column for yesterday's ETA. 

Hi, @lewgreen 

Thank you for your feedback.

Do you mean that the updated ETA is shown in the next row?

Or, does the old ETA disappears once the ETA is updated?


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi Jihwan_Kim,

 

Our dashboard will be refreshed daily from the import query, so the ETA that showed yesterday will be replaced with what the system tells us the ETA is now today. Sometimes it may not change but if that's the case then we'd show 0 in the datediff calculation.

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