Forum Discussion
Anonymous
4 years agoNot applicable
Creating a Button to Switch between Custom time Intelligence
Hello All, I have a report that I need to switch between fortnight, month to date and 6month period to date(season). These time periods are based on a 445 calendar and are custom periods. My Q...
amitchandak
4 years agoSuper User
Anonymous , Not very clear. Are you looking for a measure slicer?
measure slicer
https://www.youtube.com/watch?v=b9352Vxuj-M
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern
https://www.youtube.com/watch?v=vlnx7QUVYME
- Anonymous4 years agoNot applicable
following on from this.
Is there a way I can use the filter part of my calculate measure, as the slicer? This is what i have so far, trying to piece together different tutorials. the tutorial i was following creates a table that you can then use as the slicer:TimePeriod Selection =VAR TodayDate = MAX(SDAUSales[Date])VAR SeasonToDate =FILTER(ALL(BBCalendar),BBCalendar[FISCALCALENDARYEAR] = VALUES(BBCalendar[FISCALCALENDARYEAR])&& BBCalendar[SeasonName] = VALUES(BBCalendar[SeasonName])&& BBCalendar[Date]<=MAX(BBCalendar[Date]))VAR MonthToDate =FILTER(ALL(BBCalendar),BBCalendar[FISCALCALENDARYEAR] = VALUES(BBCalendar[FISCALCALENDARYEAR])&& BBCalendar[MonthName] = VALUES(BBCalendar[MonthName])&& BBCalendar[Date]<=MAX(BBCalendar[Date]))VAR Result =UNION(ADDCOLUMNS(CALENDAR(MonthToDate, TodayDate),"Selection","MTD"),ADDCOLUMNS(CALENDAR(SeasonToDate, TodayDate),"Selection","STD"))ReturnResult