Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

create dynamic column or table responsing to filter /slicer

Hello, I am a newbie in Power BI I am wondering if I could create a dynamic new column or table responsing the filter for example ,   if I filter by "customer level " ,  then in this new column / ...
  • v-yuta-msft's avatar
    8 years ago

    Hi erche3,

     

    Power BI doesn’t support dynamic calculate column, in addition, if my understanding is right, you have 2 tables, the first table has a column [level] which contains two different values “customer level” and “item level”, the second table has two columns [customer name] and [item name], right?

     

    To achieve your requirement, you can take steps below as a reference:

    1. Click Query Editor -> Transform -> Unpivot columns [customer name] and [item name] to attribute-value in the second table.
    2. After applied, create a relationship between the two tables based on some columns.
    3. In Query Editor, merge the two table into a new table.

     

    Now you can create a slicer on [level] to filter values.

     

    Regards,

    Jimmy Tao