Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Two Separate Date Selection

Hi, I am willing to implement two drop downs for date selction: Start Date, End Date. My page will have two types of vizes: 1. Viz only impacted by the End Date 2. Viz impacted by both Star...
  • v-chenwuz-msft's avatar
    v-chenwuz-msft
    4 years ago

    Hi Anonymous ,

     

    You need two date tables. one for "From" and another for "To".

     

    Measure:

    V1 = IF(SELECTEDVALUE('Fact table'[Date])<=MAX('Slicer2'[Date]),1)
    V2 = IF(SELECTEDVALUE('Fact table'[Date])>=MIN('Slicer1'[Date]) && SELECTEDVALUE('Fact table'[Date])<=MAX('Slicer2'[Date]),1)
     

    Pbix in the end you can refer.

    Best Regards

    Community Support Team _ chenwu zhu

     

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