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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.