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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
eheaton
Regular Visitor

Calculate Percentages

When calculating percent in a metrixs table a percentage is calculated for each column. See example below.   How can the second and third percentage (blue type header)columns be removed or not calculated?

 

 

 

Year Units Damaged% Units DamagedUnits Undamaged% Units UndamagedUnit Total% Total Units
2016Location A310.71%2589.29%28100.00%
 Location B511.90%3788.10%42100.00%
 Location C23.51%5596.49%57100.00%
2016 Total107.87%11792.13%127100.00%
2017Location A47.84%4792.16%51100.00%
 Location B79.59%6690.41%73100.00%
 Location C818.18%3681.82%44100.00%
2017 Total1911.31%14988.69%168100.00%

 

 

 

4 REPLIES 4
Greg_Deckler
Super User
Super User

Remove those columns from your Columns area in your matrix visualization?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Not sure how to remove the columns from the metrix visualization as I do want to retain the % Units Damaged column.  Below is what I would like the finished report to look like.

 

 

Year Units Damaged% Units DamagedUnits UndamagedUnit Total
2016Location A310.71%2528
 Location B511.90%3742
 Location C23.51%5557
 2016 Total107.87%117127
2017Location A47.84%4751
 Location B79.59%6673
 Location C818.18%3644
 2017 Total1911.31%149168

 

 

Hi, @eheaton

 

The column headers here ought to be in one column in the source table. There could be two solutions.

1. Remove the columns you want to delete from the source table.

2. Use filter to hide the columns. In my example, it only shows two color I want.

Calculate Percentages.jpg

 

 

 

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

@eheaton

 

Hi,

 

Did this work? Or something else I can do to help?

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.