Forum Discussion

AyaneYep's avatar
AyaneYep
Helper I
6 years ago

Create a measure that returns multiple columns

Guys, I have a problem. I created a selection menu with the following conditions:

measure_test = SWITCH(
TRUE();
        SELECTEDVALUE(menu[option]) = "1";
                SUM(table[INSCRITOS]);
        SELECTEDVALUE(menu[option]) = "2";
                SUM(table[INSCRICOESCOMPLETAS]);
SELECTEDVALUE(menu[option]) = "3";
                SUM(table[PAGARAMINSCRICAO]);
SELECTEDVALUE(menu[option]) = "4";
                SUM(table[AVALIADOS]);
SELECTEDVALUE(menu[option]) = "5";
                SUM(table[CONVOCADOS]);
 
SELECTCOLUMNS(table;"a";SUM(table[CONVOCADOS]);"b";SUM(table[AVALIADOS])
))
But, if no option is selected, I want to show the all results.
 
What would a measure look like that would show all other measures?
When selection one:
 
When nothing is selected, need to show everyone:
 
 
 
 
 

6 Replies