Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Creating own relative date slicer based on a selected value (SSAS Tabular model)

Hi,

We have a report in which the customer wants to see 5 months before the selected yearmonth, the selected month and the 6 month after the selected yearmonth.
In essence we want to build our own relative date slicer.

There are many solutions in which rolling measures are calculated, but we want to limit the months shown in the report. 
I have seen solutions with a seperate date dable in which the fact is filtered based on the dates.

We are workind with id's and not dates in the facts ánd we are working on SSAS Tabular model which limits options within PowerBI iteself.

Any one have any suggestions how to solve this problem?

2 REPLIES 2
DataInsights
Super User
Super User

@Anonymous,

 

Is it possible to add a date table to your SSAS Tabular model?

 

Are you saying that the fact table has an id such as 20201105 (yyyymmdd)?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi,
We have a dataetable in our Tabular model and yes the fact table has id's.
The datetable is used in a filter to specify a month for all the other visuals, but this one visual should show 5 months prior to chosen date, chosen date and 6 months after chosen date.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.