Forum Discussion
maracles
Resolver II
10 years agoColumn data type locked to Date
I have three tables. 1. Order Facts with a date column called First Published. This stores a date and Power BI, as expected, allows me to change the format on the modelling tab to whatever I want ...
- 10 years ago
Try adding a "*1" to your formula for the final measure and see if that helps:
Time to Delegation = ([First Published Date Max] - [First Assigned Date Max]) * 1
Or use DATEDIFF with an interval of DAYS:
https://msdn.microsoft.com/en-us/library/dn802538.aspx
Greg_Deckler
Community Champion
10 years agoTry adding a "*1" to your formula for the final measure and see if that helps:
Time to Delegation = ([First Published Date Max] - [First Assigned Date Max]) * 1
Or use DATEDIFF with an interval of DAYS:
https://msdn.microsoft.com/en-us/library/dn802538.aspx
maracles
Resolver II
10 years agoGreg_Deckler the "*1" worked great. If you dn't mind, why does that work?
Thank you.
- Greg_Deckler10 years ago
Community Champion
Forces it to be returned as a number instead of a date type, basically in DAX data type logic, Date - Date = Date whereas Date * Number = Number
- Greg_Deckler10 years ago
Community Champion
Forces it to be returned as a number instead of a date type, basically in DAX data type logic:
Date - Date = Date whereas Date * Number = Number
- maracles10 years ago
Resolver II
Very useful. Thanks.