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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
smedina1
Frequent Visitor

subtract two columns of a matrix with Dax

I request your kind collaboration, I have two columns in a matrix (days), in which I need to subtract them for each row.

So here, I need subtract column "18" minus "17". taking into account that the number 18 is the day of the month, and I need it to be subtracted from the previous day.

smedina1_0-1679073098759.png
Thank you.

 

1 REPLY 1
Anonymous
Not applicable

Assuming the format of the column is Date you can use 

Days Difference = DATEDIFF([Start Date], [End Date], DAY) or please provide the column format ?

 

 

 

Regards,

Jupsimar Singh.

Mark my post as a solution if it helped you !

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors