Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |