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,
Please find the data model, i am replicating my business scenario here.
We need to have country in the slicer, user can select single country or multiple countries.
when user selects single country sales should be displayed in local currency we have seperate column in fact table for local currency aggregatoin.
when user selects more than one country, sales should be displayed in USD, we have seperate column in fact table for USD currency aggegation.
please find the expected result.
any suggestions are appreciated..
Thanks..
Solved! Go to Solution.
try like this:
=IF( CALCULATE( COUNTROWS( Countries ), ALLSELECTED( Countries ) ) = 1, SUM( Sales[SalesLC] ), SUM( Sales[SalesUSD] ) )
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
try like this:
=IF( CALCULATE( COUNTROWS( Countries ), ALLSELECTED( Countries ) ) = 1, SUM( Sales[SalesLC] ), SUM( Sales[SalesUSD] ) )
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
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 |