Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Need help i displaying the data with filter and without filter.

Data Set: Document Date Data 5/5/2020 1 5/6/2020 3 5/23/2020 5 6/1/2020 3 6/2/2020 5 6/5/2020 2 7/1/2022 5 7/3/2020 6 Created a Cal date from table from (2010,1,1 to 2030,12,31) Joined wit...
  • v-yingjl's avatar
    v-yingjl
    6 years ago

    Hi Anonymous ,

    You can delete the realationship between calendar date and document date, create a control measure like this and set its value as 1 in the visual filter to achieve this:

    Visual control = 
    VAR _max =
        CALCULATE ( MAX ( 'Calendar'[Date] ), ALLSELECTED ( 'Calendar'[Date] ) )
    RETURN
        IF ( SELECTEDVALUE ( 'Table'[Document Date] ) > _max, 1, 0 )

     

    Sample file is attached that hopes to help you, please check and try it: Need help i displaying the data with filter and without filter.pbix 

     

    Best Regards,
    Yingjie Li

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