Forum Discussion

Sams-BI's avatar
Sams-BI
Regular Visitor
2 years ago
Solved

Date

I have a requirement where the Date slicer has to be blank by default but whenever date is entered in the To field, it should limit to 12 months from the selected date. The slicer is a date range. Request your help on this

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Sams-BI ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data. 

    (2) We can create a table.

    Slicer Table = CALENDAR(EDATE(MAX('Table'[To date]),-12),MAX('Table'[To date]))

    (3) Then the result is as follows.

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Sams-BI ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data. 

    (2) We can create a table.

    Slicer Table = CALENDAR(EDATE(MAX('Table'[To date]),-12),MAX('Table'[To date]))

    (3) Then the result is as follows.

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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