Forum Discussion

qwertzuiop's avatar
qwertzuiop
Icon for Advocate III rankAdvocate III
3 years ago
Solved

Combine Filters in Filter Area

Hello Dear Power BI-Community

 

Following task to solve:

 

Let's assume this table (Tasks with a status and a deadline)

I think everybody can relate ðŸ˜€

 

The goal is to automatically filter this table based on the following conditions:

Status = End & Deadline more than 3 months ago from today


Expected Result:

Task 4 should disappear because it was done and the deadline is more than 3 months ago

Unfortunately I have not found a way to use this combined filter.

 

 

Any ideas?
Thank you very much for your contribution

 

Cheers and have a good day

qwertzuiop

 

 

 

  • Arul's avatar
    Arul
    3 years ago

    qwertzuiop ,

    try this kind of measure and apply it in visual level filter,

    Condition = 
    VAR _today90 = TODAY()-90
    VAR _result = IF(MAX('Table (6)'[Status])="End" && MAX('Table (6)'[Deadline])<_today90,0,1)
    RETURN _result

    Thanks,

    Arul

     

3 Replies

    • qwertzuiop's avatar
      qwertzuiop
      Icon for Advocate III rankAdvocate III

      Hello Arul 

       

      Sure we can call it 90 days indeast of 3 Month.

      But unfortunately this does not answer my question

       

      Cheers

      qwertzuiop

      • Arul's avatar
        Arul
        Icon for Super User rankSuper User

        qwertzuiop ,

        try this kind of measure and apply it in visual level filter,

        Condition = 
        VAR _today90 = TODAY()-90
        VAR _result = IF(MAX('Table (6)'[Status])="End" && MAX('Table (6)'[Deadline])<_today90,0,1)
        RETURN _result

        Thanks,

        Arul