Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hi,
I am trying to replicate a pivot table like this in power BI
This is what I have achieved so far with the Matrix table and it does not really work because I cannot compute the percentage of total for each status by each Source (For example, ATP has 7 leads on 13/05/2020 and 4 leads were approved, then the percentage for approved under ATP should be 57% not 7.27% like in the picture) , it only has the percentage of row, percentage of column and percentage of grand total which are not really what I want, please help me with this case, thank you!
Solved! Go to Solution.
My bad, try this:
Measure =
IF( Hasonefilter([Status]) ;
Calculate([Lead count] ; Removefilter([Status])) ;
Calculate([Lead count] ; Removefilter([Source]) , [Source] <> BLANK() , [Source] <> "Delivered")
@natureorigin01 , Not clear. There is % of total you can use for every column.
Or refer
https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390
Hi,
I have found a way to compute the percentage of each Status under each Source, but now the percentage of each Source is 100%,
I need it to be the percentage of the column total, please advise if you can, thank you!
Hi,
I'd advice you to start by creating a measure counting to total count per source.
It should look something along the lines of:
Measure = Calculate([Lead count] ; Removefilter([Status]))
And when you place it in the matrix it should return something along the lines of:
approved |
4 | 7 |
busy | 7 | |
callback consult | 7 | |
closed | 7 | |
rejected | 2 | 7 |
trash | 1 | 7 |
You should then finally be able to use this measure in a divide with [lead count] to get the correct %.
Let me know how it goes,
/ J
Hi,
Thanks for your reply,
I tried the methods and it returned the percentage for the statuses under the source but the percentage of the source is now 100%, I need it to be the percentage of the column total, is there anyways to achieve this?
Try this,
Measure =
IF( Selectedvalue([Status]) <> BLANK();
Calculate([Lead count] ; Removefilter([Status])) ;
Calculate([Lead count] ; Removefilter([Source]))
/ J
Thanks for your reply,
I tried the suggested code but it returned some weird numbers, not the column total, for example on 13 May 2020, the column total is 559 but it returned 1675
Do you have any visual level filters on the table that affect the "Source" column?
Yes, I have put a filter to not include 'Delivered' and Blank Sources
Measure =
IF( Selectedvalue([Status]) <> BLANK();
Calculate([Lead count] ; Removefilter([Status])) ;
Calculate([Lead count] ; Removefilter([Source]) , [Source] <> BLANK() , [Source] <> "Delivered")
/J
Thanks for your reply,
Now I have removed all the filters but the blank Source and some other Sources like ELB and EVC are not showing the correct total, is there anyways to fix this?
My bad, try this:
Measure =
IF( Hasonefilter([Status]) ;
Calculate([Lead count] ; Removefilter([Status])) ;
Calculate([Lead count] ; Removefilter([Source]) , [Source] <> BLANK() , [Source] <> "Delivered")
It worked!
Thanks so much!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
85 | |
66 | |
52 | |
48 |
User | Count |
---|---|
215 | |
90 | |
83 | |
67 | |
59 |