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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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] ) )

 



Microsoft MVP



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.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule 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] ) )

 



Microsoft MVP



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.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Brilliant! Works perfectly! 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.