Forum Discussion

PascalM's avatar
PascalM
New Member
5 years ago
Solved

Conditional formatting not working correctly when cross-filtering

Hi,

 

I've created a bar chart with conditional formatting: green for positive values, red for negative values:

When I apply a cross cross-filter, the color coding seems to be based on the unfiltered value, resulting in a positive filtered value being displayed in red when the unfiltered value is negative:

Any ideas on how to solve this?

 

Thanks

Pascal

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi PascalM ,

     

    For my test, conditional formatting based on Highlight could work well in Table visualization but no other visualizations...

    Here is the pbix file.

     

    If you also want this in power bi, let the power bi community to know this things and give your votes at power bi site's feedback - https://ideas.powerbi.com/ideas/


    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,
    Eyelyn Qin

4 Replies

  • PascalM , I doubt that will when users fill it will change based on coditional formatting. Because the overall number has not changed.

     

    It will only change with filter

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi PascalM ,

    For my test, I prefer to filter with Slicer:

    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,
    Eyelyn Qin

    • PascalM's avatar
      PascalM
      New Member

      Hi Eyelyn,

       

      Thanks for your suggestion.  I know that when changing interaction between my visuals from highlight to filter, I can achieve the same result as with your suggested slicer.  But my objective is to have the original bar shown together with the sliced value, i.e. to have the highlight approach but with color applied according to the actual values...

       

      Regards

      Pascal

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi PascalM ,

     

    For my test, conditional formatting based on Highlight could work well in Table visualization but no other visualizations...

    Here is the pbix file.

     

    If you also want this in power bi, let the power bi community to know this things and give your votes at power bi site's feedback - https://ideas.powerbi.com/ideas/


    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,
    Eyelyn Qin