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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
lnorman
Frequent Visitor

Matrix with filters and slicers - get a % of total by customer

I have a Matrix with Customer Name, Customer Number, Order Type, order count per type with a subtotal by customer.

Date Slicer and Customer Number Slicer - Filtering on a specific group or order statuses

How do I write a new measure to get the % by order type for each customer (500/557, 15/557, .2/557, 40/557)  "Show value as" will calucate based on the whole column, not each individual customer.  

Customer NameCustomer NumberOrder TypeDistinct Order CountHow do I get: % by order type
Customer112345Copied50090%
  Freight153%
  Quote20%
  Scanner407%
 Total 557100%
Customer212246Copied2518%
  Freight11%
  Manual5035%
  Quote2014%
  Scanner4532%
   141100%

 

Have been reearching solutions for a while and trying various measures but can't quite get the result I need.

Thanks.

2 REPLIES 2
lnorman
Frequent Visitor

I found my own solution without having to create new measures.  Instead of my order type being in a ROW, I moved it to Column.  This then allowed me to to have Value Count of Order and Value Show as % of Row.

Tad17
Solution Sage
Solution Sage

Check out this forum entry: https://community.powerbi.com/t5/Desktop/Unable-to-Get-Correct-Percentage-when-Filter-or-Slicer-Used...

 

They accomplished what you are trying to do.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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