Forum Discussion

Jonwig's avatar
Jonwig
Frequent Visitor
7 years ago
Solved

Showing Multiple Measure in one bar chart cleanly

Hi PowerBIers,   I have what I think should be a simple question but cant seem to find the answer to it anywhere.   I have market research data, where I have the awareness for a number of brands ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi ,

     

    Bit of a workaround but you could create a new table (by using Enter Data) with the name of your measures:

     

    Table Name: Aware
    Aware Headers:
    Aware Brand1
    Aware Brand2
    Aware Brand3
    Aware None

     

    Then create a switch statement like the below:

     

    SWITCH (
        MIN ( 'Aware'[Aware Headers] ),
        "Aware Brand1", [Aware Brand1],
        "Aware Brand2", [Aware Brand2],
        "Aware Brand3", [Aware Brand3],
        "Aware None", [Aware None]
    )

     

    Use the switch statement above as your value and use your Column Headers from the table as your X axis