Forum Discussion

zakkyang's avatar
zakkyang
Frequent Visitor
4 years ago
Solved

Scatter Plot Legend Color: Based on Multiple Field Value and Create Multiple Rules

 

Hi,

 

The current setup is only for one field. But I want the legend color shown by different colors with different rules. Is there any way by using DAX to solve this problem?

 

Thanks.

  • Anonymous's avatar
    Anonymous
    4 years ago

    HI zakkyang,

    I'd like to suggest you do 'unpivot columns' on your value fields to convert them to attribute and value.

    Unpivot columns (Power Query) (microsoft.com)
    Then you can put attributes on legend fields, value on value fields with DAX expression(use if statement checks both attribute and value fields) to apply conditional formatting to multiple fields.

    Regards,

    Xiaoxin Sheng

2 Replies