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
Nidhi_Kochrekar
Frequent Visitor

How to use Datediff and with allexcept in one measure

Hello 

 

I am trying to get date difference with allexcept 

 

Seconds to open = CALCULATE(FILTER(ALLEXCEPT(Append1,Append1[ID]),DATEDIFF(Append1[Submit Date],Append1[Last Modified Date],SECOND)))
 
 
2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Nidhi_Kochrekar 

 

Can you provide some sample data and expected output you hope to get? 

 

The first variable in CALCULATE() should be an expression which returns a single value while FILTER() will return a table. 

 

ALLEXCEPT – DAX Guide

CALCULATE - DAX Guide

DATEDIFF - DAX Guide

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

amitchandak
Super User
Super User

@Nidhi_Kochrekar , New column

Seconds to open = CALCULATE(DATEDIFF(Append1[Submit Date],Append1[Last Modified Date],SECOND), ALLEXCEPT(Append1,Append1[ID]))

 

new table

Seconds to open = CALCULATE(AverageX(Append1, DATEDIFF(Append1[Submit Date],Append1[Last Modified Date],SECOND)), ALLEXCEPT(Append1,Append1[ID]))

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

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