Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi
I require the Dax to be able to calculate the region revenue instead of the country revenue in a matrix table by data set is as follows
the table i'm trying to create in power BI is something like this where i display both the country Rev and the Region rev next to each other which i have managed to do with the following dax.
Region Rev = CALCULATE(SUM('Dataset 1'[Revenue]),FILTER(FILTER(ALL('Dataset 1'),'Dataset 1'[Region]=SELECTEDVALUE('Dataset 1'[Region])),'Dataset 1'[Year]=SELECTEDVALUE('Dataset 1'[Year])))
However i cannot get it to calculate by industry and it is just giving me the total rev for the region, rather then by Industry by for that region.
in theory all i want to do is stop the measure from filtering on Country and instead filter on the region for that country when it is displaying any values
any help would be much appreciated!
Solved! Go to Solution.
@Anonymous does the code as below help you?
Region Rev = CALCULATE(SUM('Dataset 1'[Revenue]),'Dataset 1'[Region] IN VALUES('Dataset 1'[Region]),ALL('Dataset 1'[Country]))
@Anonymous does the code as below help you?
Region Rev = CALCULATE(SUM('Dataset 1'[Revenue]),'Dataset 1'[Region] IN VALUES('Dataset 1'[Region]),ALL('Dataset 1'[Country]))
@wdx223_Daniel thanks this works perfectly! Thanks alot
Sorry i can't access my @Anonymous account at the moment so had to create this new one, unfortunately I cannot mark as solution
Hi Daxer
this would not work am im trying to calculate the region revenue when a country is filtered. simply removing the country filter is not what is required.
when a country is selected it needs to show what the total revenue is for the region related to that country. I also need this to be able calculate for products and industry i.e showing the total region revenue for an industry/ product when a country is selected.
Does anyone else have any ideas how to do this?
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
18 | |
18 | |
17 | |
16 |
User | Count |
---|---|
28 | |
27 | |
19 | |
15 | |
14 |