Forum Discussion
Switching Calculation with Field Parameters in Power BI Visuals
- 2 years ago
Hi Ronald123 ,
Redo the measure to:
Total Sum = VAR _a = SELECTCOLUMNS ( Parameter, "Name",[Parameter]) RETURN SUMX ( _a, SWITCH ( [Name], "APPEL", [APPEL], "ORANGE", [ORANGE], "BANANA", [BANANA], 0 ) )I added a new row Banana to get some different results but it's working has needed:
Hello Miguel Félix,
Thank you for your response.
When I use the formula now (the 1st option), there is no total when I select 2 parameters at the same time. Can you help me modify the formula so that it adds Calculation A and Calculation B together?
Best regards,
Ronald
Hello MFelix ,
To complement my question, I am hereby sending you my test file.
Greets,
Ronald
https://drive.google.com/file/d/12-g6iJyUI2NtOzUPZ2Pwv0sKM3Mhhb8f/view?usp=drive_link
- Ronald1232 years ago
Resolver III
Hi MFelix ,
The test file can now be accessed without a password.
Greets,
Ronald- MFelix2 years ago
Super User
Hi Ronald123 ,
Redo the measure to:
Total Sum = VAR _a = SELECTCOLUMNS ( Parameter, "Name",[Parameter]) RETURN SUMX ( _a, SWITCH ( [Name], "APPEL", [APPEL], "ORANGE", [ORANGE], "BANANA", [BANANA], 0 ) )I added a new row Banana to get some different results but it's working has needed: