Forum Discussion
Jos13
Helper III
6 years agoPower BI Table visual Formatting
Hi, I have a table with sales details of different products. When I drag required columns in the power bi table visual, I get following output. Is it possible to get a visual like the followi...
- 6 years ago
Hi,
Please take following steps:
1)Try this measure:
Total = IF ( ISINSCOPE ( 'Table'[Category] ) && MAX ( 'Table'[Product] ) = MINX ( FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Category] IN FILTERS ( 'Table'[Category] ) ), 'Table'[Product] ), CALCULATE ( SUM ( 'Table'[Sales] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Category] IN FILTERS ( 'Table'[Category] ) ) ) )2)Choose matrix visual, the result shows:
See my attached pbix file.
Best Regards,
Giotto
v-gizhi-msft
Community Support
6 years agoHi,
Please take following steps:
1)Try this measure:
Total =
IF (
ISINSCOPE ( 'Table'[Category] )
&& MAX ( 'Table'[Product] )
= MINX (
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Category] IN FILTERS ( 'Table'[Category] )
),
'Table'[Product]
),
CALCULATE (
SUM ( 'Table'[Sales] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Category] IN FILTERS ( 'Table'[Category] )
)
)
)
2)Choose matrix visual, the result shows:
See my attached pbix file.
Best Regards,
Giotto