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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.