March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi guys,
I have 4 regions: NA, LA, APAC, EMEA.
I have this main measure:
This main measure works great if I only filter one region. The problem comes when I filter NORTH AMERICA and Any other region (LA for example). When this happens the main measure only use measure2 to make the calculation, this is because of the SELECTEDVALUE (he only works when only one region is selected).
Do you guys know any other function I can use to be able to filter by NORTH AMERICA and LATIN AMERICA with the result = measure1 + measure2?
Thanks
Hi @Anonymous
The first clause should be testing if Regions 'HASONEVALUE', if so check if SELECTEDVALUE eq NA or LA otherwise return what you would like to display in that case.
Did it work ? Mark it as a solution to help spreading knowledge
Was this exchange helpful? A kudos 👍 would be appreciated
What I need is:
Filter = NA:
measure1 = 100$
Filter = LA
measure2 = 200$
Filter = ALL (LA and NA)
measure 1 + 2 = 300$
Here is another way
MyMeasure=
SWITCH(TRUE(),
SELECTEDVALUE(Mytable[Regions])="NA",[Measure1],
SELECTEDVALUE(Mytable[Regions])="LA",[Measure2],
[Measure1]+[Measure2])
Replace MyTable with you table name
Did it work ? 👍 A kudos would be appreciated 📢 Mark it as a solution to help spreading knowledge
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |