Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Slicer for several columns

Hi everyone,

 

I have found several posts with people with the same question, but I couldn't find a post which suits my issue. 

 

I have created 4 calculated columns in my date table: 
- Last week (with the text 'Last week' or a blank)

- Last month (with the text 'Last month' or a blank)

- Last quarter (with the text 'Last quarter' or a blank)

- YTD (with the text 'YTD' or a blank)

 

In which way can I combine those 4 calculated column in one to create a slicer for this? 

  • Hi, Anonymous ;

     

    Unfortunately, Power BI accepts measures as filters only at a single visual level, and it does not accept measures as filters at the page level nor at the report level. so you only 

    Another method is unpivot in power query .

    1.select 4 column then unpivot.

    2.removing empty value.

    3. create two relationship.(both not single)

    Then you could use second table's value to filter on all pages.

    The final output is shown below:

     


    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies