cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
tsynenkyy
Helper II
Helper II

L12M with a slicer by year/month

Hi,

 

This is OK, is exactly what I need, Im only appliying one relative filter for the last 1 year

tsynenkyy_0-1637568350409.pngtsynenkyy_1-1637568109537.png

But the problem is when I want to se only 2020, indicating that in a slicer:

 

tsynenkyy_2-1637568188109.png

it shows me only two month, because of the relative date filter, how can I see the entire 2020 year?

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@tsynenkyy , relative date slicer work from today. You have to create one of you own with independent date slicer 

 

refer

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

 

and for last year

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

 

https://community.powerbi.com/t5/Desktop/Required-custom-date-Slicer-Last-7-days-last-15-days-last-3...

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@tsynenkyy , relative date slicer work from today. You have to create one of you own with independent date slicer 

 

refer

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

 

and for last year

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

 

https://community.powerbi.com/t5/Desktop/Required-custom-date-Slicer-Last-7-days-last-15-days-last-3...

Hi,

Thank you again for your help 🙂

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors