Forum Discussion

timmay's avatar
timmay
Icon for Advocate I rankAdvocate I
5 years ago
Solved

Format colour by field value - stacked column chart

Demo file is here: https://www.dropbox.com/s/k2srqe2d7fxcp1e/Mock%20Data%20PBI.pbix?dl=0 Table 1 has colours based on field values but with table 2, i can't use a formula or any field to...
  • v-henryk-mstf's avatar
    5 years ago


    Hi timmay ,


    The reason for the problem you described is: because the SKU field is placed in the legend in the stacked column chart visual of table2, and the colors corresponding to different skus default from the colour hash field of the original data source, and each histogram is finally formed. Composed of many different colors. The prerequisite for color selection based on conditions in table1 is that there are no fields in legend, and each histogram consists of only one color. This is the reason why tabel2 cannot perform the same operation as table1.

     

    If the legend field in table2 is removed, you can also has colours based on field values as below:


    If the problem is still not resolved, please provide detailed error information. Let me know immediately, looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.