Forum Discussion
Building a visual based on month slicer
Hi,
I am trying to build a visual such that the screen has a month slicer and year slicer and another slicer called timeframe which has values like R1, R3, R6 and R 12. I should be able to select a month and year from the slicers and the R value from the timeframe slicer. For example if I select Mar 2022 from month and year slicer and select R3 from the third slicer the visual should only show data from Jan 2022- mar 2022(included).
So far I have made the calendar table as follows :
I am getting the following output for the above period table code:
2 Replies
- amitchandak
Super User
Anonymous , refer if approach in my blog can help
https://medium.com/chandakamit/power-bi-when-i-felt-lazy-and-i-needed-too-many-measures-ed8de20d9f79
- AnonymousNot applicable
Hi Amit,
Your blog post is really insightful, but it might not work for me, could you please look at my code and tell me why DATESINPERIOD is not returning the correct table when I use the values captured from the slicer but it works when I use the today () function.Thanks.