Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Winniethewinner
Helper IV
Helper IV

Re-grouping to Table or Matrix view

Hi PBI Experts!

 

I have a data source table:

Winniethewinner_0-1747346794980.png

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: 

Winniethewinner_1-1747346865283.png

Not sure how to achieve this, if someone knows and can help that's greatly appreciated!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

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

 

 

Jihwan_Kim_0-1747369528627.png

 

Jihwan_Kim_1-1747369637587.png

 

 

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

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

 

 

Jihwan_Kim_0-1747369528627.png

 

Jihwan_Kim_1-1747369637587.png

 

 

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Brilliant! Works perfectly! 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.