Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Filter Visual Based upon Today Week Number Measure

I have a measure:

 

Today Week = WEEKNUM(TODAY())
 
And I have a Visual that I would like to filter using this measure. I have a Week Number column.

6 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      To filter a Stacked Bar Chart to only show data from this current week. I assumed using the weke number would be the best way to do this. I want my to change on a weekly basis.

      • Ritaf1983's avatar
        Ritaf1983
        Super User

        I'm still not entirely sure what you're trying to accomplish. However, if you need your measure to function as a filter, you can create something like this:

        Filter_test = IF(WEEKNUM(MAX('your_table'[date])) = WEEKNUM(TODAY()), 1, 0)

        Alternatively, you could simply use a relative date filter

        If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    Any update on this? Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

    If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

    How to Get Your Question Answered Quickly 

    Regards,

    Xiaoxin Sheng