Forum Discussion

bobby27's avatar
bobby27
Frequent Visitor
5 years ago
Solved

How to create a label field based on selected fields

  I would like the matrix on the right hand side of the page to always show a single row and be dynamically based on the selection in the left hand table e.g. to show Overall or Australia or A...
  • Gabriel_Walkman's avatar
    5 years ago

    How about something like this?

    My test data


    Result. I used a normal table on the right.


    It's not perfect ie. if selecting a "country" with a single item in it. If I select "a" it will show "x". But maybe this would work for you?

    pbi

  • jdbuchanan71's avatar
    5 years ago

    bobby27 

    Give this a try.

    Label = 
    VAR _Country = SELECTEDVALUE('Customer'[Country])
    VAR _Category = SELECTEDVALUE('Customer'[Category])
    VAR _Name = SELECTEDVALUE('Customer'[Name])
    RETURN 
    COMBINEVALUES(" ",_Country,_Category,_Name)