Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
70 | |
43 | |
31 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |