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 August 31st. Request your voucher.
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!
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
34 | |
15 | |
12 | |
7 | |
6 |