Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Setting a Default Value for a Slicer

Hi Everyone,

 

I hope you can help me on this. This issue has been discussed in few other posts and apparantly some solutions been suggested, but none could help me. 

 

I try to explain it in a clear language but please let me know if it's not clear. We setup a report that linked to a spreadsheet and get update on a daily basis. Each morning data of day before is getting populated in so we are one day lagging but that's fine. we have few visuals in the report and "Date" slicer, we want to only present "Day" values, and the most updated one which are"Yesterday" date values. What I want to do here to set the slicer on default value of "Yesterday". User still are able to choose their desired date but we want it to default on Yesterday date everytime the report is getting opened.

 

Mty knowledge of Query editing is very very basic so i appreciate your step by step solution in a way i could apply it easily.

 

Thanks,

 

 

  • Hi Anonymous,

     

    My way of handling this requirement was to create a calculated column in the date dimension "IsYesterday", which was a formula and either said "Yesterday" or "Other Dates".

     

    I used this as a slicer in my report, alongside the normal date slicer and selected "Yesterday" in the "IsYesterday" slicer.

     

    Then I told my users that they can select other dates by clicking the "Other Dates" option on the "IsYesterday" slicer.

     

    Hope that makes sense and helps,

    Alex

4 Replies

  • alexei7's avatar
    alexei7
    Icon for Continued Contributor rankContinued Contributor

    Hi Anonymous,

     

    My way of handling this requirement was to create a calculated column in the date dimension "IsYesterday", which was a formula and either said "Yesterday" or "Other Dates".

     

    I used this as a slicer in my report, alongside the normal date slicer and selected "Yesterday" in the "IsYesterday" slicer.

     

    Then I told my users that they can select other dates by clicking the "Other Dates" option on the "IsYesterday" slicer.

     

    Hope that makes sense and helps,

    Alex

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks alexei7, it's a good idea and worked for me. I might a bit overcompleicated it by only wanting one slicer in the page, but this is good and does the job.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Anonymous  alexei7 : I am in the same boat and i created the two slicers as suggested in this thread but when i select yestarday in the report in slicer the other normal date slicer is still showing the range instead of from and to date pointing to yesatrday which is creating confusion to my users . I am attaching the screenshot in below .

        If you dont mind can you send reply alogn with the implemnted screenshot that helps for me. In below latest date was "3/18/2019" but the filter showing 5/4/2018 to 3/18/2019 which is confusing the users