Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Dear Community,
I have a 4 column in my table, which is Country, Code, Profit and Revenue.
Country | Code | Profit | Revenue |
PVG | ABC | 1000 | 4000 |
IND | DEF | 2000 | 5000 |
UK | QWE | 3000 | 6000 |
So i will create a table in my report, which will sum all the particular country's profit and revenue.
Here my question, is that possible if I select PVG in my slicer, it will auto filter out the code 'ABC' and 'DFE' then sum their profit and revunue. Moreover, if I select IND, it will filter out 'QWE' and 'DEF' code.
* IND need to have 'ABC' and 'DFE' code in the calculation, only excluded for PVG.
I thank you for taking time out to answer my question. I am sure that you are really busy and I appreciate you taking the time to respond personally to me. Thank you again.
Best regards.
Solved! Go to Solution.
Try to revamp it like below code:
Final Measure = Switch(True(), MAX(Table[County])="PVG",Calculate( Measure, Table[Code] NOT IN {"ABC", "DEF"}), Table[County]="IND", Calculate( Measure, Table[Code] IN {"ABC", "DEF"}))
NOTE: Measure is the name of calulcated profit which you just posted above.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |