Forum Discussion
hashanr
6 years agoFrequent Visitor
Use two Drop down slicers as FROM /TO filter dates
Hello everyone, I have this requiremnet where there is two dropdown slicers used to select from/to period. These drop down contains period in [Month] [Year] format and not in proper date format. ...
amitchandak
Super User
6 years agohashanr , Refer id this article can help. In place of the date, you can have your choice of the slicer
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
- hashanr6 years agoFrequent Visitor
amitchandak I wish i could use slicers like your article but user strickly wanted two dropdown slicers to pick periods. Anyway thanks for your attention and support
- amitchandak6 years ago
Super User
hashanr , you may have created two independent date/month tables and choose a month from those as from and 2 and create a measure like
Measure = var _min =maxx(ALLSELECTED('Date1'),'Date1'[Date]) var _max =maxx(ALLSELECTED('Date2'),'Date1'[Date]) return CALCULATE(SUM('order'[Qty]),filter(all('Date'),'Date'[Date]>=_min && 'Date'[Date]<=_max))- hashanr6 years agoFrequent Visitor
Hi Thank you for your input. I got answers with similar solution from few of members. All considered, I managed to overcome challange. thank you for your support !