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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
nultra
Regular Visitor

Power BI - Rows to Columns

I need to create a matrix, but my souce data has two collums that need to be altered 

 

nultra_0-1734535890700.png

 

The action column as three occuring actions, Purge, Add, and Scan. 

 

I need these to be headers with the counts to be assigned to below them. 

 

This is needed as the stores will then corespod to the relevant total 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @nultra ,

You can use the following measure as the matrix value to display as a percentage.

Percentage = 
DIVIDE (
    SUM ( 'Table'[Counts] ),
    CALCULATE ( SUM ( 'Table'[Counts] ), ALL () )
)

vdengllimsft_0-1734944529056.png

 

Please see the attahced pbix file for reference.

Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @nultra ,

You can use the following measure as the matrix value to display as a percentage.

Percentage = 
DIVIDE (
    SUM ( 'Table'[Counts] ),
    CALCULATE ( SUM ( 'Table'[Counts] ), ALL () )
)

vdengllimsft_0-1734944529056.png

 

Please see the attahced pbix file for reference.

Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

POSPOS
Post Partisan
Post Partisan

@nultra  - 
Step 1 - Add a matrix visual

Step 2 - Add "Store" to Rows , "Action" to Columns. This will now make the Action Values  to be headers with the counts  assigned below them. 

POSPOS_0-1734545233321.png

 

 


Hope this helps.

Thanks for that, Is there a way to duplicate the total tab? I need the total to be as a % as well 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.