Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All,
I have a field company name from one table. And different field called Sector from different table.
This is the measure we are using in bar chart which is linked to Sector field.
Measure 4 =
CALCULATE(DISTINCTCOUNT( AnswerHistory_Benchmarking[POrganization]) , FILTER(AnswerHistory_Benchmarking, AnswerHistory_Benchmarking[POrganization] <> 6377
)
, FILTER(RR_Datapoint,RR_Datapoint[RR_ID]=1) )
If I select filter Sector values are changing accordingly.
And this is the conditional Color Measure we are using in bar cahrt =
VAR _SELECTCompanyID =
CALCULATE( SELECTEDVALUE(Company_DataIsland[POrgID] ))
VAR _VALUES= VALUES(AnswerHistory_Benchmarking[POrganization] )
RETURN
IF ( _SELECTCompanyID IN _VALUES ,"#dc6900","#FFB500 ")
Now If I select Sector filter bar colors should not change only measure value should change. Color should reflect only based on company selection. Please let me know.
Solved! Go to Solution.
Hi @Kavya123,
I think you need to remove the relationship from the slicer source table to the fact table first, then you can directly use measure expression to extract the selection and use in if statement for color formating.
Color Measure =
VAR selected =
VALUES ( Company_DataIsland[POrgID] )
VAR _current =
SELECTEDVALUE ( AnswerHistory_Benchmarking[POrganization] )
RETURN
IF ( _current IN selected, "#dc6900", "#FFB500 " )
Regards,
Xiaoxin Sheng
Hi @Kavya123,
I think you need to remove the relationship from the slicer source table to the fact table first, then you can directly use measure expression to extract the selection and use in if statement for color formating.
Color Measure =
VAR selected =
VALUES ( Company_DataIsland[POrgID] )
VAR _current =
SELECTEDVALUE ( AnswerHistory_Benchmarking[POrganization] )
RETURN
IF ( _current IN selected, "#dc6900", "#FFB500 " )
Regards,
Xiaoxin Sheng
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 4 | |
| 3 | |
| 2 |