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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Yink88
New Member

Filter Table by Date

I want to be able to count the rows of my table after a certain day (5/10/2022). I have a "Date Created" column and nothing is working for me.
1 REPLY 1
Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

Insert following formula in PQ to count rows where #"Changed Type" should be replaced with your previous step

= Table.RowCount(Table.SelectRows(#"Changed Type", each [Date Created] > #date(2022, 5, 10)))

 See the working here - Open a blank query - Home - Advanced Editor - Remove everything from there and paste the below code to test

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtU31jcyMDJSitUBcSyQOYYGKDwjZJ6RJYJnhmyGmb6hKYJnrm8I5cQCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Date Created" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Date Created", type date}}),
    #"Filtered Rows" = Table.RowCount(Table.SelectRows(#"Changed Type", each [Date Created] > #date(2022, 5, 10)))
in
    #"Filtered Rows"

If you are looking for DAX solution

Count of Rows = COUNTROWS(FILTER('Table','Table'[Date Created]>DATE(2022,5,10)))

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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