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
banksters
New Member

Filter not applying to a measure?

Hello,

 

I have a table where one of the columns is represented by a measure. This measure will switch values depending on the value of another column in the table.

 

ScoreMeasure.png

 

I have a calculated column that will return different colors based on the values in the Score column.

ColorReturnColumn.png

 

I applied conditional formatting to the Score column and based it on the Color Return Column calculated column, so that the background color of the column would change depending on what value it contains.

ColorconditionNoFilter.png

It works as shown above, but only when there are no filters applied. I have a dropdown that filters the data, and it seems like the Color Return Column calculated column is still returning values based on the Score column without any filters.

ColorconditionWithFilter.png

The second row should be returning red, and the third row should be returning yellow. Is there a way to have Color Return Column return colors based on values after filters are applied to the page?

5 REPLIES 5
v-janeyg-msft
Community Support
Community Support

Hi, @banksters 

 

When measure is used in the column, the context may change. There is no problem with your code. If you don’t provide sample data, it will be difficult for us to help you.

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.


Best Regards,

Community Support Team _ Janey

Greg_Deckler
Community Champion
Community Champion

@banksters Hard to say without knowing what the formulas are for your measures [Score], etc.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Here are a couple of the formulas I am using.

 

Average Time Until Work Started =
SUM('TicketMetrics'[TimeToWorkStart]) / DISTINCTCOUNT('All tickets'[Tck_ID])
 
Average Time to Assign/Acknowledge =
SUM('TicketMetrics'[TimeToAssign]) / DISTINCTCOUNT('All tickets'[Tck_ID])
 
The dropdown I use to filter the data is filtering on a column in the "All tickets" table, where it's selecting a value ResponsibleGroupID to find tickets that belong to certain groups only.

@banksters OK, but what is the [Score] measure formula? Because that is what seems to be messing up, yes?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Apologies, here is the [Score] measure.

 

Score =
IF (
HASONEVALUE ( 'IT Summary via New Table'[Metric] ),
SWITCH (
VALUES ( 'IT Summary via New Table'[Metric] ),
"Team Work Backlog", [Team Work Backlog],
"Average Time to Assign/Acknowledge", [Average Time to Assign/Acknowledge],
"Average Time Until Work Started", [Average Time Until Work Started]
)
)

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors