Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have data like below
Vendor code | Duplicate basis of Bank account | Duplicate basis of name | Duplicate basis of Address |
Vendor A | 1 | 1 | 1 |
Vendor B | 1 | 1 | 0 |
Vendor C | 1 | 0 | 0 |
Vendor D | 0 | 0 | 1 |
Vendor E | 1 | 0 | 1 |
I am trying to create table visual as below but I am stuck for the vendor where more than one condition is true.
KPIs | Count | Percentage |
Count of duplicate vendor basis on Bank account | 4 | 80% |
Count of duplicate vendor basis on name | 2 | 40% |
Count of duplicate vendor Address | 3 | 60% |
Above table is just illustration of real table.
Can any one help????
Solved! Go to Solution.
Hi @Jagriti11 ,
Unpivot the columns excluding the vendor code and then create two measures for Percentage and Vendor Count as shown below:
Vendor Count = CALCULATE(DISTINCTCOUNTNOBLANK(Data[Vendor code]),Data[Count]=1)
Percentage % = DIVIDE([Vendor Count],CALCULATE([Vendor Count],ALL(Data[Flag])),BLANK())
This will give you desired result:
Hi @Jagriti11 ,
Unpivot the columns excluding the vendor code and then create two measures for Percentage and Vendor Count as shown below:
Vendor Count = CALCULATE(DISTINCTCOUNTNOBLANK(Data[Vendor code]),Data[Count]=1)
Percentage % = DIVIDE([Vendor Count],CALCULATE([Vendor Count],ALL(Data[Flag])),BLANK())
This will give you desired result:
User | Count |
---|---|
80 | |
77 | |
63 | |
48 | |
44 |
User | Count |
---|---|
101 | |
43 | |
39 | |
39 | |
36 |