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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ksangha
Frequent Visitor

Percent of group total by another total

 

I have below data and I have created simple table visualization in Power BI. 

 

IDstatusRange
1C730
2D650
3D690
4P690
5C690
6C710
7D750
8C650
9C690
10D690
11C770
12C690
13D690
14C730
15C710
16C650
17P650
18C670
193670
20P770

Capture.PNG

When the user clicks on any status in table 1, I want to find Percent total from the whole dataset which is 20 records.

i.e. User clicks on D result should display total records with Status D in that range/ total records in that range.

For 650 range there are 4 records and one record is with Status D, so 650 --- 25%(1/4)

 

What is the best way to achieve this? 

RangePercent of D records
65025.00%
69042.86%
750100.00%

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

You may refer to my solution in this file.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

You may refer to my solution in this file.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ChandeepChhabra
Impactful Individual
Impactful Individual

@ksangha Can you explain the calculation for those numbers 25%, 42.86% and 100%?

Interkoubess
Solution Sage
Solution Sage

Hi @ksangha,

 

How do you get for Range 750, 100% and 42.86% for range 690 when selecting D?

 

Let me know and i can give it a try.

 

Ninter

There are 4 records in Range 650 and one record is Status D, so for 650, 1/4=25%.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors