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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to filter year = 2019 ?

Hi All

 

2019 ONLY.png

1 ACCEPTED SOLUTION

@Anonymous Unsure of what the use case is, if you simply want to show just 2019 data in the page you can just go to the filter pane on the right hand side, be sure to add [year] in the filter pane, select basic filtering and select checkbox for just 2019

 

Or you could add all dates (down to date level ) to filter pane and filter by relative date.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , example measures

 

Hard coded

measure =
calculate(sum(Table[Qty]), filter(Date,year(date[date])=2019))

 

Using time intelligence

Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@Anonymous Unsure of what the use case is, if you simply want to show just 2019 data in the page you can just go to the filter pane on the right hand side, be sure to add [year] in the filter pane, select basic filtering and select checkbox for just 2019

 

Or you could add all dates (down to date level ) to filter pane and filter by relative date.

Anonymous
Not applicable

Hi Mpicca

 

Thank you for give me the key word  and i google now i am able to filter year = 2019.

 

Paul

 

Anonymous
Not applicable

Hi Sir

May i know how to use Filter to temperay filter year =2019.

Paul

Anonymous
Not applicable

You could add a column in your Date table which match as follows:

Calculated Column = year(Date[Date])=2019

 

This will give you a status that you can filter in your table graph

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors