Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Solved! Go to Solution.
Hi @Anonymous
How about this measure:
Sales Amount =
SWITCH (
TRUE (),
MAX(Sheet3[cate]) IN { "AMS", "APJ", "EMEA" }, [Total Sales Amount New Product],
MAX(Sheet3[cate]) = "Renewal", [Total Sales Amount Renew Product],
0
)
What the expected output should be when i select "Renewal" & "APJ" & "EMEA"?
Best Regards
Maggie
Hi @Anonymous
What do you want to do exactly? Can you explain it a bit more? For instance, what would happen if the user selects "AMS", "APJ" and "Renewal"?
Hi AIB,
Thanks for replying.
Yes, I want to allow users to multi-select from the slicer, and then my formula of total amount of sales will calculate the sum of all the sales for the items the user selected.
For example, user should be able to select AMS and APJ and EMEA, the slicer will pass the 3 item selection to the Total Amout of Sales formula and the formula will calculate the sum of total sales of AMS, APJ and EMEA.
Currently, the Selectedvalue canl pass only ONE choice to the Total AMout of Sales formula.
Thanks again for help.
PBISean
@Anonymous
Ok but what if the choice includes "Renewal"? You seem to be using a different measure in that case.
Can you show the codes of your two measures [Total Sales Amount New Product] and [Total Sales Amount Renew Product]?
Can you show the structure of your tables as well?
Yes, you are absolutely right. Ideally, the multiple choice should also allow "Renewal" which is using a different measure/formula than the "AMS", "APJ" & "EMEA".
But for this moment, I would be happy if we can allow multiple choices without "Renewal".
The measures for Total Sales Amount New Product & Total Sales Amount Renew Products are as follows. The only difference is the filter on the Revenue Type.
Hi @Anonymous
How about this measure:
Sales Amount =
SWITCH (
TRUE (),
MAX(Sheet3[cate]) IN { "AMS", "APJ", "EMEA" }, [Total Sales Amount New Product],
MAX(Sheet3[cate]) = "Renewal", [Total Sales Amount Renew Product],
0
)
What the expected output should be when i select "Renewal" & "APJ" & "EMEA"?
Best Regards
Maggie
Maggie,
It works! This is amazing.
I never had the faintest idea you can use MAX in this situation. I thought MAX is only to find the maximum value in a column or among numbers as illustrated by:
https://docs.microsoft.com/en-us/dax/max-function-dax
How come you can use MAX in this way? I don't get it.
But it works!
Thanks,
PBISean
@Anonymous
I'm still a bit confused as to what the exact requirements are but you can test if the user has selected any of those three values in the slicer for instance with this:
COUNTROWS (INTERSECT({"AMS", "APJ", "EMEA"}, VALUES (D_1_Deck[Deck]))) > 0which will be TRUE when the selection includes any of the three.
Like I said, it would help clarify everything if you show the structure of your data model/tables.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 78 | |
| 48 | |
| 34 | |
| 31 | |
| 29 |