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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Paulyeo11
Impactful Individual
Impactful Individual

How to filter year = 2019 ?

Hi All

 

2019 ONLY.png

1 ACCEPTED SOLUTION

@Paulyeo11 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

@Paulyeo11 , 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"))

@Paulyeo11 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.

Paulyeo11
Impactful Individual
Impactful Individual

Hi Mpicca

 

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

 

Paul

 

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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