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
krrish116
Resolver II
Resolver II

Filter the Table Content with the Donut Chart Selection

Hi @amitchandak ,

I have a Donut Chart with two measures:

% Compliant = 0+CALCULATE(COUNT('TA_E'[compliance_updated]),
'TA_E'[compliance_updated]="Compliant")/[Total Compliant Count]
 
% Not Compliant = 0+CALCULATE(COUNT('TA_E'[compliance_updated]),
'TA_E'[compliance_updated]="Non-Compliant")/[Total Compliant Count]
 
Below Donut Chart there is a Table Visual, Where we are showing 
Activity_NameDateFinish_DateComplaiance_UpdatedDelay
xxxwweComplaint10
BxxxrrrNot Complaint0
CwwdddNA12
DeewwwNot Complaint2
EeesssComplaint14
FssxxxComplaint4
GssyyyNot Complaint16
 
 In the Donut Chart if we click on Complaint part then in the table we have to display only Complaint Related Info..
Activity_NameDateFinish_DateComplaiance_UpdatedDelay
xxxwweComplaint10
EeesssComplaint14
FssxxxComplaint4

 

 In the Donut Chart if we click on Not Complaint part then in the table we have to display only Not Complaint Related Info.

Activity_NameDateFinish_DateComplaiance_UpdatedDelay
BxxxrrrNot Complaint0
DeewwwNot Complaint2
GssyyyNot Complaint16

 

Thanks , 

Krish..

3 ACCEPTED SOLUTIONS

@krrish116 , if you create it with measure it will not filter, create it with column compliance_updated

and use a measure like

divide(COUNT('TA_E'[compliance_updated]),calculate(COUNT('TA_E'[compliance_updated]), allselected('TA_E')))

 

you may to exclude NA

View solution in original post

Hi @krrish116 ,

You can create a measure as below to replace the original measures % Compliant and % Not Compliant, then drag the field "Complaiance_Updated" to Legend field and new measure into Values field just like below screen shot. The data in table visual will be filtered by the selection in Donut chart...

Measure = 
DIVIDE (
     (
        CALCULATE (
            COUNT ( 'TA_E'[Complaiance_Updated] ),
            FILTER (
                'TA_E',
                'TA_E'[Complaiance_Updated] = MAX ( 'TA_E'[Complaiance_Updated] )
               &&'TA_E'[Complaiance_Updated]<>"NA"
            )
        ) + 0
    ),
    [Total Compliant Count]
)

Filter the Table Content with the Donut Chart Selection.JPG

Best Regards

Rena

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

View solution in original post

Hi @v-yiruan-msft ,

Thanks for the Solution.

Thank you once again.

-Krish...

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@krrish116 , I  am not able to get the issue you are facing

Hi @amitchandak ,

I have a Donut Chart with two measures:

krrish116_0-1599485222255.png

% Compliant = 0+CALCULATE(COUNT('TA_E'[compliance_updated]),
'TA_E'[compliance_updated]="Compliant")/[Total Compliant Count]
 
% Not Compliant = 0+CALCULATE(COUNT('TA_E'[compliance_updated]),
'TA_E'[compliance_updated]="Non-Compliant")/[Total Compliant Count]
 
Below the Donut Chart there is a Table Visual, Where we are showing 
Activity_NameDateFinish_DateComplaiance_UpdatedDelay
xxxwweComplaint10
BxxxrrrNot Complaint0
CwwdddNA12
DeewwwNot Complaint2
EeesssComplaint14
FssxxxComplaint4
GssyyyNot Complaint16
 
 In the Donut Chart if we click on Complaint part then in the table we have to display only Complaint Related Info..
 
 
 
 
 

 

Activity_NameDateFinish_DateComplaiance_UpdatedDelay
xxxwweComplaint10
EeesssComplaint14
FssxxxComplaint4

 

 In the Donut Chart if we click on Not Complaint part then in the table we have to display only Not Complaint Related Info.

Activity_NameDateFinish_DateComplaiance_UpdatedDelay
BxxxrrrNot Complaint0
DeewwwNot Complaint2
GssyyyNot Complaint16

 

Thanks , 

Krish..

 

 

@krrish116 , if you create it with measure it will not filter, create it with column compliance_updated

and use a measure like

divide(COUNT('TA_E'[compliance_updated]),calculate(COUNT('TA_E'[compliance_updated]), allselected('TA_E')))

 

you may to exclude NA

Hi @amitchandak ,

I tried that measure and it is not working can you please guide me to overcome this situation and i want to get the filtered values in Table with Donut Selection.

Or else any other way.

Thanks,

Krishhhh....

Hi @krrish116 ,

You can create a measure as below to replace the original measures % Compliant and % Not Compliant, then drag the field "Complaiance_Updated" to Legend field and new measure into Values field just like below screen shot. The data in table visual will be filtered by the selection in Donut chart...

Measure = 
DIVIDE (
     (
        CALCULATE (
            COUNT ( 'TA_E'[Complaiance_Updated] ),
            FILTER (
                'TA_E',
                'TA_E'[Complaiance_Updated] = MAX ( 'TA_E'[Complaiance_Updated] )
               &&'TA_E'[Complaiance_Updated]<>"NA"
            )
        ) + 0
    ),
    [Total Compliant Count]
)

Filter the Table Content with the Donut Chart Selection.JPG

Best Regards

Rena

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

Hi @v-yiruan-msft ,

Thanks for the Solution.

Thank you once again.

-Krish...

Hi @amitchandak ,

Thankyou very much and this is working fine..

Thanks,

Krish...

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.