Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have the below measure that works great. Management Level group is my slicer and then i filter the slicer it gives me the correct number of promotions. what i want to do is to be able to select, three different values in my slicer at the same time, so M4+,M1-M3 and P1-P6 and return a new measure, what i am trying to do is highlighted in red. any ideas on how i can get this to work?
Solved! Go to Solution.
Hi @mmills2018 ,
Please try this formula.
test women promos =
VAR Selection = CONCATENATEX( 'Snapshots (Prod)', [Management Level (groups)], "," )
RETURN
SWITCH(
TRUE(),
Selection= "M4+", [Count Global Women Promotion to M4+]+0,
Selection= "M1-M3", [Count Global Women Promotion to M1-M3]+0,
Selection = "P1-P6", [Count Global Women Promotion to P1-P6]+0,
Selection = "M4+,M1-M3,P1-P6",[Count Global Women to Professional]+0,
Selection = "01-04", [Count Global Women Promotion to O1-O4]+0,
Selection = "T1-T4", [Count Global Women Promotion to T1-T4]+0,
Selection = "B1-B4", [Count Global Women Promotion to B1-B4]+0,
( [Count Global Women Promotion to M4+]+[Count Global Women Promotion to M1-M3]+[Count Global Women Promotion to P1-P6]+[Count Global Women Promotion to O1-O4]+[Count Global Women Promotion to T1-T4]+[Count Global Women Promotion to B1-B4]+0)
)
This is my test result.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mmills2018
Modify your measure a little bit, but it might return different value if you multi-select other groups combination
test women promos =
VAR Selection = IF(HASONEVALUE('Snapshots (Prod)'[Management Level (groups)]),
SELECTEDVALUE('Snapshots (Prod)'[Management Level (groups)]),
CONCATENATEX(VALUES('Snapshots (Prod)'[Management Level (groups)]),[Management Level (groups)]))
return
SWITCH(TRUE(),
Selection="M4+", [Count Global Women Promotion to M4+]+0,
Selection="M1-M3", [Count Global Women Promotion to M1-M3]+0,
Selection = "P1-P6", [Count Global Women Promotion to P1-P6]+0,
Selection = "M4+" & "M1-M3" &"P1-P6",[Count Global Women to Professional]
Selection = "01-04", [Count Global Women Promotion to O1-O4]+0,
Selection = "T1-T4", [Count Global Women Promotion to T1-T4]+0,
Selection = "B1-B4", [Count Global Women Promotion to B1-B4]+0,
( [Count Global Women Promotion to M4+]+[Count Global Women Promotion to M1-M3]+[Count Global Women Promotion to P1-P6]+[Count Global Women Promotion to O1-O4]+[Count Global Women Promotion to T1-T4]+[Count Global Women Promotion to B1-B4]+0))
Hi @mmills2018 ,
Please try this formula.
test women promos =
VAR Selection = CONCATENATEX( 'Snapshots (Prod)', [Management Level (groups)], "," )
RETURN
SWITCH(
TRUE(),
Selection= "M4+", [Count Global Women Promotion to M4+]+0,
Selection= "M1-M3", [Count Global Women Promotion to M1-M3]+0,
Selection = "P1-P6", [Count Global Women Promotion to P1-P6]+0,
Selection = "M4+,M1-M3,P1-P6",[Count Global Women to Professional]+0,
Selection = "01-04", [Count Global Women Promotion to O1-O4]+0,
Selection = "T1-T4", [Count Global Women Promotion to T1-T4]+0,
Selection = "B1-B4", [Count Global Women Promotion to B1-B4]+0,
( [Count Global Women Promotion to M4+]+[Count Global Women Promotion to M1-M3]+[Count Global Women Promotion to P1-P6]+[Count Global Women Promotion to O1-O4]+[Count Global Women Promotion to T1-T4]+[Count Global Women Promotion to B1-B4]+0)
)
This is my test result.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks! for some reason, it is still not picking up the multiple selection. I changed my measure to only show one number if selected and its showing .14 instead of .15. any ideas why?
Hi @mmills2018
Can you try to return the value of Selection when you do multi-selection? It worked here...
so weird, It is not working for me. I am connecting two data tables, could that be the issue? but when i select one value it works just fine?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |