This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all,
I have two slicer, one slicer contains the full name of country (for e.g. Japan), one table contains the mapping of the currency for that country and one table contains only one row "USD" as the currency
I want to have one slicer with options below:
If one country is selected, I will show two currency (e.g. if japan is selected, I will show JPY, USD)
If more than one country is selected, I will always show USD
How to do this in Power BI?
Solved! Go to Solution.
Hi @ckwongak ,
My Sample is as below.
Currency:
DimCountry:
Table:
Data model:
Measure:
Currency Appear when only one country is selected =
VAR _SELECTVALUE =
SELECTEDVALUE ( 'Currency'[Currency] )
VAR _COUNT =
COUNTAX ( VALUES ( DimCountry[Country] ), [Country] )
RETURN
IF ( _COUNT = 1, CALCULATE ( SUM ( 'Table'[USD] ) ) * _SELECTVALUE )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ckwongak ,
My Sample is as below.
Currency:
DimCountry:
Table:
Data model:
Measure:
Currency Appear when only one country is selected =
VAR _SELECTVALUE =
SELECTEDVALUE ( 'Currency'[Currency] )
VAR _COUNT =
COUNTAX ( VALUES ( DimCountry[Country] ), [Country] )
RETURN
IF ( _COUNT = 1, CALCULATE ( SUM ( 'Table'[USD] ) ) * _SELECTVALUE )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 36 | |
| 30 | |
| 23 | |
| 22 |