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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
rahul9731
Frequent Visitor

Line and Stacked column chart

I have to create a 1st chart with the Category on the x-axis and percentage and count on the y-axis. The Bars on the chart needs to be split further into 2 based on the Is_Company field.

I have to create a 2nd chart which will show the data for a specific category yearwise based on the selection on the 1st chart. The Year on the X axis and count on the y-axis for that specific category. So basically the 2nd chart is dependent on the 1st chart and updates when any selection is performed on the 1st charts

 

I am not able to achieve the 2nd chart functionality and it shows all the category data instead of the one selected on the 1st chart. I am able to achieve this slighlty in a different way by a drilldown into the Is_Company on the x-axis shared with category and then using the tooltip to link it to a different report which is hidden.

 

Can someone please explain how it can be achieved? 

 

I have attached the sample data and the visualization how it needs to be look like. For ex - in the below visualization screenshot, I have selected the VL category where Is_Company = 1 but in the 2nd chart, it still shows the data for other categories and Is_Company = 1 whereas I would like it to show the count of only the VL category where Is_Company = 1 by year.


Sample Data.PNGSample Chart.PNG

 

2 REPLIES 2
rahul9731
Frequent Visitor

Thanks Sheng and apologies for a delay in response. Can you please provide a sample code for your statement :

"write a measure formula to extract the table 1 selection and compare it with table 2 records, and return the tags to filter on the 'visual level filter' to apply filter effects to achieve the chart interactions."

v-shex-msft
Community Support
Community Support

HI @rahul9731,

Do these two charts use the same data source? If that is the case, they can't directly achieve the custom filter effect.
I think you need to create a duplicate table without a relationship and use it as the source to create the second chart.
Then you can write a measure formula to extract the table 1 selection and compare it with table 2 records, and return the tags to filter on the 'visual level filter' to apply filter effects to achieve the chart interactions.
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.