Forum Discussion
MarceloLeiteJ
3 years agoRegular Visitor
SQL to DAX
How can I adapt this calc made in SQL to DAX? Note: The variables are set by a Slicer in Power BI: The real problem is in the CASE function, that change the value of a colum called "PercTime", ...
djurecic
3 years agoSuper User
Hi MarceloLeiteJ ,
You can use the SWITCH function to get similar functionality.
https://www.youtube.com/watch?v=UVYpt3mGvys
https://learn.microsoft.com/en-us/dax/switch-function-dax
Please accept as solution if this answers the question- thanks!