Forum Discussion
ThaysEloi
4 years agoNew Member
Format function with Switch
I've following DAX: EBITDA CLP = IF(ISINSCOPE(Aux_EBITDA[Codigo Topico ]), SWITCH(SELECTEDVALUE(Aux_EBITDA[Codigo Topico ]), 101, [Revenues], 102, [Personnel EB], 103, _Medidas_EBITDA...
ThaysEloi1
4 years agoNew Member
I tried and the DAX reports error.
Anonymous
4 years agoNot applicable
Hi ThaysEloi
Please refer to this post for the solution:
Note the data type of the returned result.
If this does not work, please consider providing an error message or a sample file without private data.
How to provide sample data in the Power BI Forum
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data