Forum Discussion

joshua1990's avatar
joshua1990
Post Prodigy
2 years ago
Solved

Measure as filter?

I have a simple table that shows the sales based on 4 tables (master data, sales, budget, calendar). Now I would like to use a filter at the top of the report with which I can filter whether an arti...
  • Daoud_H's avatar
    2 years ago

    Hi joshua1990 ,

     

    You can create a column wich has the value 'has_sales' and 'has_budget' : 

    ColumnFilter = 
    IF(
        'Table'[sales] > 0, 
        "has_sales", 
        IF(
            'Table'[budget] > 0, 
            "has_budget", 
            BLANK()
        )
    )

     

    From this column you can filter your data.

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi joshua1990 ,

     

    What everyone else has said makes a lot of sense.

     

    First, make sure your four tables are properly related to each other.

     

    Second, are your "sales" and "budget" column names?

     

    If so, drag "sales" and "budget" to the Filter at the visual object level and set the condition to is greater than 0.

     

    If you have any other questions please feel free to contact me.

     

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!