Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Dynamic legend using a DAX measure

Hi everyone,

 

Details:

 

I am using a Clustered Column Chart to show Total sales by geographic area. The data looks like this:

 

GEOTotal Sales     Sales  CompleteSales Pending 
Americas10,000,000     5,000,0005,000,000
ASIA12,000,000     6,000,0006,000,000
EMEA14,000,000     7,000,0007,000,000

 

Desired outcome: 

 

I want to use the Clustered Column Chart to show Sales Complete & Sales Pending next to each other with the axis showing by Geo. 

 

The Problem:

 

Currently I am connected to a data cube using a live connection so I cannot create a DAX table to create a category filter.

 

Question:

 

How can I create a legend using a DAX measure that will give me the desired outcome given I am using a live connection?

 

Thank you!

 

5 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      I cannot enter data, I am on a live connection so this option is not given 

      • v-easonf-msft's avatar
        v-easonf-msft
        Community Support

        Hi, Anonymous 

        Unfortunately, you cannot apply the created measure to the visual legend , and  Live connection does not support the creation of calculated columns and tables.

        We suggest you to modify the original model by adding a category table.

         

        Best Regards,
        Community Support Team _ Eason