Forum Discussion
Winniethewinner
Helper IV
1 year agoRe-grouping to Table or Matrix view
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 colum...
- 1 year ago
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] ) )
Jihwan_Kim
Super User
1 year agoHi,
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] ) )
Winniethewinner
Helper IV
1 year agoBrilliant! Works perfectly!