Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi PBI Experts!
I have a data source table:
I'd like to organize the visuals as Matrix or Table format with below the layout, where Country list is the unique values from POS and POO columes:
Not sure how to achieve this, if someone knows and can help that's greatly appreciated!
Solved! Go to Solution.
Hi,
One of ways is to create inactive relationship and active relationship between the fact table and the dimension table like below.
And try to use USERELATIONSHIP DAX function in the measure.
Please check the below picture and the attached pbix file.
userelationship dax Microsoft Learn
POS revenue: =
SUM( data[REV] )
POO revenue: =
CALCULATE ( SUM ( data[REV] ), USERELATIONSHIP ( Country[Country], data[POO] ) )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi,
One of ways is to create inactive relationship and active relationship between the fact table and the dimension table like below.
And try to use USERELATIONSHIP DAX function in the measure.
Please check the below picture and the attached pbix file.
userelationship dax Microsoft Learn
POS revenue: =
SUM( data[REV] )
POO revenue: =
CALCULATE ( SUM ( data[REV] ), USERELATIONSHIP ( Country[Country], data[POO] ) )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Brilliant! Works perfectly!
User | Count |
---|---|
85 | |
80 | |
77 | |
49 | |
41 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |