Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 12 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |