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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.