Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
The requirement is i have to remove days(Time) from Date column with DAX(calculated column or measure)
Time Column - Text
Date Column - Date(dd-mm-yy)
Example - if the Time column has 2,00 days, Date colum (17th Jan 22) = 17th jan 22-3days
the output should come - 15th Jan 22
Any advise please?
Thanks
Solved! Go to Solution.
I see,
the issue is with the format ",00" the most direct way to solve this would be to change the columns data type to number. Here is an dax alternative:
Proud to be a Super User!
Hi,
You can use e.g. MAX/SELECTEDVALUE combined with a simple subtraction:
dax:
Proud to be a Super User!
Hi @ValtteriN
Thanks for the solution. But can we convert same measure to calculated column?
beacuse when i am creating Measure . i am getting circular dependency error (if we use combination of more calcu,ated columns and measures their might be circular dependency) to avoid can we convert same measure to calculated column ??
i have tried to convert same into calculated column but it is giving incorrect result
Please advise
Hi ValtteriN
I have tried your formula - Getting incorrect result as below screenshot
Pleae advise further.
Thanks
I see,
the issue is with the format ",00" the most direct way to solve this would be to change the columns data type to number. Here is an dax alternative:
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
45 | |
25 | |
19 | |
16 | |
8 |
User | Count |
---|---|
71 | |
49 | |
45 | |
20 | |
17 |