March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
Register NowGet certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
121 | |
99 | |
90 | |
72 | |
62 |
User | Count |
---|---|
140 | |
121 | |
106 | |
98 | |
94 |