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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors