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
JD193704
Frequent Visitor

Enable Measure-based Pie Chart to filter Table

Hello,

 

I have a table where I work with conditional formatting in a separate column. So, based on several conditions this column shows a certain color code (#008B00, #FF0000, #FFFF00, #BEBEBE). For my Pie Chart, I use measures to show the distribution of these colors:

PieChartGreen = COUNTX(FILTER(Table, ColorLogicMeasure = "#008B00"), ColorLogicMeasure)

 

I use this way because the coloring is based on dates and the dates can be changed by pre-selection in a slicer.

But with this implementation it's not possible to click on one section of the PieChart to filter the table. I tried to create a connection via the Legend field but it is not possible to use measures there.

 

Any idea on how to solve this problem?

 

Thank you!

3 REPLIES 3
Idrissshatila
Super User
Super User

Hello @JD193704 ,

 

try making this conditional formatting field as a calculated column in the main table that has the data, then you can use it to filter it.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




The problem is I was not able to make it work with a conditional column. The measure for the conditional formatting looks basically like this:

 

Measure = 

VAR Date1 = ...
VAR Date_Changing = Measure_Deadline

RETURN
IF(Date1 > Date_Changing,...

 

Is it possible to have a VAR defined in a column, that changes based on a slicer setting which changes the threshold for the Date_Changing? If you know what I mean...

Hello @JD193704 ,

 

no this won't work as a calculated column if there's an input taken from a slicer.

 

and also in your case the measure won't let you filter the table.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




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!

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.