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
KV2022
Helper II
Helper II

difference of two dates in fact

Please help

I need to find difference of two dates in fact for multiple records and aggregate them together

ID Stage1  start   end   itrtn1

ID stage1 start     end   itrtn2

ID stage2 start   end   itrtn1

ID stage2 start     end   itrtn2

output  = ID  stage1 -- diff in days 

                ID  stage2     diff in days   

then it should be displayed as a matrix

 

3 REPLIES 3
MahyarTF
Memorable Member
Memorable Member

Hi,

You could create the column in your table as below :

Diff in Day = DATEDIFF( Sheet152[Last Fuel Purchase Date] , Sheet152[Fuel Purchasing Date] , DAY)
then use in your visual :
MahyarTF_0-1662111598673.png

Appreciate your Kudos

Mahyartf

Thanks for the reply. I cant create columns. This should be a measure.

@KV2022 So use any aggregate function like MIN or MAX.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

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