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
SweetLana
New Member

undefined

Hi all, I am quite new to PBI and all what I have learnt was from online sources.

I need help with filtering data ( I belive in power query) so in my PBI I will have results only for 2023.

The data source contains queries raised by customers in the last 2022 and not yet being closed/ processed, so I need to apply filter only on solved queries. 

Applying this on Filters, it doesn't show me data for opened ones. 

Thanks in advance!

1 REPLY 1
BA_Pete
Super User
Super User

Hi @SweetLana ,

 

This should indeed be done in Power Query. Your filter code should look something like this:

Table.SelectRows(
    previousStepName,
    each Date.Year([completedDate]) = 2023 or [completedDate] = null
)

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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.

Top Solution Authors
Top Kudoed Authors