The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi
I want to count the days between start and end, but if the EndDate is 2099-01-01 i want it to be blank or show a value.
Do you have any tips how I would do this?
Days between = DATEDIFF(
Investigations[InvestigationStartDate],
Investigations[InvestigationEndDate],
DAY)
Solved! Go to Solution.
You just have drafted the answer in your question itself.
Days between =
IF (
Investigations[InvestigationEndDate] <> DATE ( 2099, 01, 01 ),
DATEDIFF (
Investigations[InvestigationStartDate],
Investigations[InvestigationEndDate],
DAY
)
)
Thank you! 👍
You just have drafted the answer in your question itself.
Days between =
IF (
Investigations[InvestigationEndDate] <> DATE ( 2099, 01, 01 ),
DATEDIFF (
Investigations[InvestigationStartDate],
Investigations[InvestigationEndDate],
DAY
)
)
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
12 | |
9 | |
7 |