cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User IV
Super User IV

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

@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

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

Helper I
Helper I

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
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session Drive Data Culture with Power BI: Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

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

Top Solution Authors
Top Kudoed Authors