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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors