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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Rockz
Helper I
Helper I

How to Pie chart can be interacted with table visual and stacked Colum chart without using legends

Dear Champions,

 

I need your help here am using a piechart where this pie chart to be interacted with table and bar chart visual. I'm not using legends here and using only values as measures. how can I achieve this ? and I have tried edit interactions as well but it didn't worked.

 

Thanks in advance.

3 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Thanks for the reply from amitchandak  please allow me to provide another insight:

Hi, @Rockz 
 

Can you tell me if your problem is solved? If yes, please accept  amitchandak's reply as solution.
 

If not, can you explain to us what the interaction in your needs means?
 

1.If you want the data to be highlighted after selecting the visualization, in this case, as long as there is a relationship between the data, it can be correlated and displayed normally, the following are my actual results:

vlinyulumsft_0-1724321394413.png

Here are the official documents for this:
Understand how visuals interact in a report - Power BI | Microsoft Learn
 

2.If you want to visualize the impact on the display of the data itself, we recommend using a slicer visualization:

vlinyulumsft_1-1724321394414.png
Of course, filters are also a good choice:

vlinyulumsft_2-1724321462079.png

Here is the relevant documentation:

 Slicers in Power BI - Power BI | Microsoft Learn
Add a filter to a report in Power BI - Power BI | Microsoft Learn
 

Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.


Best Regards,

Leroy Lu

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

Rockz
Helper I
Helper I

Dear Thanks for your quick response,

So In the below Piechart when I click on any of the measure value for example in below pie chart Iam using close within in the time so when I click on that measure then beside visual should also filter and give the result. This is the measure Iam using in Piechart values.

Closed within the time =
VAR X = [Selected Number of Days]
VAR AllowedTime = X * 6 * 60
RETURN
CALCULATE(
COUNTROWS('XYZ_Table'),
'XYZ_Table''[status] IN {"Close", "Complete"} &&
'XYZ_Table'[Processing Time] <= AllowedTime

Rockz_0-1724329193781.png

Hope you got my issue. and I have tried what amitchandak sugggested  by using Group calculations but it is not working.

 

Thank you.

 

 

View solution in original post

Anonymous
Not applicable

Hi, @Rockz 

My understanding of your question is that you need to click on any of the metrics that make up the pie chart in the pie chart visualization object, then apply the metric f filter to the other visualizations and output the results in the other visualizations.

At the moment, it's not possible to click on the visualization to achieve the data filtering you need.

But you can try using slicers as an alternative to the way you switch:

For example, I create data like this:

vlinyulumsft_0-1724744199131.png

The following measure is then created in the pie chart as a filler:

Closed within the time = 
VAR X = [Selected Number of Days]
VAR AllowedTime = X * 6 * 60
RETURN
CALCULATE(
COUNTROWS('XYZ_Table'),
'XYZ_Table'[status] IN {"Close", "Complete"}&&
'XYZ_Table'[Processing Time] <= AllowedTime)
Unclosed within the time = 
VAR X = [Selected Number of Days]
VAR AllowedTime = X * 6 * 60
RETURN
CALCULATE(
COUNTROWS('XYZ_Table'),
'XYZ_Table'[status] IN {"Active"}&&
'XYZ_Table'[Processing Time] <= AllowedTime)

1.As an alternative, you can use a slicer as a toggle:

vlinyulumsft_1-1724744282066.png

 

2.Then you can use the following measure to switch between filters:
 

MEASURE = 
VAR X = [Selected Number of Days]
VAR AllowedTime = X * 6 * 60
VAR a1 =
    CALCULATE (
        SUM ( 'XYZ_Table'[Processing Time] ),
        'XYZ_Table'[status]
            IN { "Close", "Complete" }
                && 'XYZ_Table'[Processing Time] <= AllowedTime
    )
VAR a2 =
    CALCULATE (
        SUM ( 'XYZ_Table'[Processing Time] ),
        'XYZ_Table'[status]
            IN { "Active" }
                && 'XYZ_Table'[Processing Time] <= AllowedTime
    )
RETURN
    IF (
        ISFILTERED ( 's'[kk] ),
        IF ( MAX ( 's'[kk] ) = "Closed within the time", a1, a2 ),
        SUM ( 'XYZ_Table'[Processing Time] )
    )

3.Here's the end result, hopefully for your needs:

vlinyulumsft_2-1724744404423.png

vlinyulumsft_5-1724744468329.png

 

vlinyulumsft_4-1724744432976.png

 

If you feel that performance needs to be improved, you can also submit an idea on

https://ideas.fabric.microsoft.com/ and wait for users with the same needs as you to vote for you and help you realize the idea as soon as possible. Many features of our current products are designed and upgraded bed on customers’ feedback.  With requirements like this increase, the problem may well be released in the future.

 

Thanks for your understanding.
 

Best Regards,

Leroy Lu

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

5 REPLIES 5
Rockz
Helper I
Helper I

Dear Thanks for your quick response,

So In the below Piechart when I click on any of the measure value for example in below pie chart Iam using close within in the time so when I click on that measure then beside visual should also filter and give the result. This is the measure Iam using in Piechart values.

Closed within the time =
VAR X = [Selected Number of Days]
VAR AllowedTime = X * 6 * 60
RETURN
CALCULATE(
COUNTROWS('XYZ_Table'),
'XYZ_Table''[status] IN {"Close", "Complete"} &&
'XYZ_Table'[Processing Time] <= AllowedTime

Rockz_0-1724329193781.png

Hope you got my issue. and I have tried what amitchandak sugggested  by using Group calculations but it is not working.

 

Thank you.

 

 

Anonymous
Not applicable

Hi, @Rockz 

My understanding of your question is that you need to click on any of the metrics that make up the pie chart in the pie chart visualization object, then apply the metric f filter to the other visualizations and output the results in the other visualizations.

At the moment, it's not possible to click on the visualization to achieve the data filtering you need.

But you can try using slicers as an alternative to the way you switch:

For example, I create data like this:

vlinyulumsft_0-1724744199131.png

The following measure is then created in the pie chart as a filler:

Closed within the time = 
VAR X = [Selected Number of Days]
VAR AllowedTime = X * 6 * 60
RETURN
CALCULATE(
COUNTROWS('XYZ_Table'),
'XYZ_Table'[status] IN {"Close", "Complete"}&&
'XYZ_Table'[Processing Time] <= AllowedTime)
Unclosed within the time = 
VAR X = [Selected Number of Days]
VAR AllowedTime = X * 6 * 60
RETURN
CALCULATE(
COUNTROWS('XYZ_Table'),
'XYZ_Table'[status] IN {"Active"}&&
'XYZ_Table'[Processing Time] <= AllowedTime)

1.As an alternative, you can use a slicer as a toggle:

vlinyulumsft_1-1724744282066.png

 

2.Then you can use the following measure to switch between filters:
 

MEASURE = 
VAR X = [Selected Number of Days]
VAR AllowedTime = X * 6 * 60
VAR a1 =
    CALCULATE (
        SUM ( 'XYZ_Table'[Processing Time] ),
        'XYZ_Table'[status]
            IN { "Close", "Complete" }
                && 'XYZ_Table'[Processing Time] <= AllowedTime
    )
VAR a2 =
    CALCULATE (
        SUM ( 'XYZ_Table'[Processing Time] ),
        'XYZ_Table'[status]
            IN { "Active" }
                && 'XYZ_Table'[Processing Time] <= AllowedTime
    )
RETURN
    IF (
        ISFILTERED ( 's'[kk] ),
        IF ( MAX ( 's'[kk] ) = "Closed within the time", a1, a2 ),
        SUM ( 'XYZ_Table'[Processing Time] )
    )

3.Here's the end result, hopefully for your needs:

vlinyulumsft_2-1724744404423.png

vlinyulumsft_5-1724744468329.png

 

vlinyulumsft_4-1724744432976.png

 

If you feel that performance needs to be improved, you can also submit an idea on

https://ideas.fabric.microsoft.com/ and wait for users with the same needs as you to vote for you and help you realize the idea as soon as possible. Many features of our current products are designed and upgraded bed on customers’ feedback.  With requirements like this increase, the problem may well be released in the future.

 

Thanks for your understanding.
 

Best Regards,

Leroy Lu

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

Anonymous
Not applicable

Thanks for the reply from amitchandak  please allow me to provide another insight:

Hi, @Rockz 
 

Can you tell me if your problem is solved? If yes, please accept  amitchandak's reply as solution.
 

If not, can you explain to us what the interaction in your needs means?
 

1.If you want the data to be highlighted after selecting the visualization, in this case, as long as there is a relationship between the data, it can be correlated and displayed normally, the following are my actual results:

vlinyulumsft_0-1724321394413.png

Here are the official documents for this:
Understand how visuals interact in a report - Power BI | Microsoft Learn
 

2.If you want to visualize the impact on the display of the data itself, we recommend using a slicer visualization:

vlinyulumsft_1-1724321394414.png
Of course, filters are also a good choice:

vlinyulumsft_2-1724321462079.png

Here is the relevant documentation:

 Slicers in Power BI - Power BI | Microsoft Learn
Add a filter to a report in Power BI - Power BI | Microsoft Learn
 

Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.


Best Regards,

Leroy Lu

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



 

amitchandak
Super User
Super User

@Rockz , No it can not, if you use measures. You can create a calculation group of measures and if you use that in all visuals, you can interact for measures.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Dear @amitchandak 

Can you please provide me any reference document to implmenet the griup calculations?

Thank you.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.