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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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