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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
v-denglli-msft
Community Support
Community Support

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
v-denglli-msft
Community Support
Community Support

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 Patron
Post Patron

@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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.