March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |