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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
powerbityro
Helper II
Helper II

limit slicer YEAR in a live connection

hi all,

 

i have a slicer YEAR with to much years from 1990 - 2029. i want to limit it to 2017-2019 (year of today and the last 3 years).

 

the problem is that i work in a live connection with a tabular model. i cant write columns. only measures. and measures are not accepted in slicers.

 

many thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

I assume that you should be having a Date Column. This Date Column should be connected to another Table which would have the Continuous set of Date Values. When you are seeing this column inside of Power BI, you should be seeing the Year in the Hierarchy. Add this to the Slicer.

 

Now to limit it to the last 3 years, Take the Date Column in the Dim_Date (Diemension Table) and add the same to the Reports' Page Level Filter. Now Select Relative Filtering Option and You can input Anything like 36 and Months.

 

Best Regards,
Vignesh M

If what I suggested worked for you, feel free to Drop a "Kudos" and Consider to "Accept as Solution" if I solved your Issue  🙂

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi,

 

I assume that you should be having a Date Column. This Date Column should be connected to another Table which would have the Continuous set of Date Values. When you are seeing this column inside of Power BI, you should be seeing the Year in the Hierarchy. Add this to the Slicer.

 

Now to limit it to the last 3 years, Take the Date Column in the Dim_Date (Diemension Table) and add the same to the Reports' Page Level Filter. Now Select Relative Filtering Option and You can input Anything like 36 and Months.

 

Best Regards,
Vignesh M

If what I suggested worked for you, feel free to Drop a "Kudos" and Consider to "Accept as Solution" if I solved your Issue  🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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