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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Artofdax
Frequent Visitor

Datediff with % off

hi, need little help with my calculation.

 

I would like to take 20% off Target Days

 

DATEDIFF(Table1[First Day)],Table1[Last Day)],DAY)<=(Table1[Target Days])
1 ACCEPTED SOLUTION
aduguid
Super User
Super User

Try this measure 

DaysDifferenceCheck =
DATEDIFF(Table1[First Day], Table1[Last Day], DAY) <= (Table1[Target Days] * 0.8)

View solution in original post

2 REPLIES 2
aduguid
Super User
Super User

Try this measure 

DaysDifferenceCheck =
DATEDIFF(Table1[First Day], Table1[Last Day], DAY) <= (Table1[Target Days] * 0.8)

Thank you 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.