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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hmeltonPSL
Helper II
Helper II

Count with ALL function and Filter

I have a gauge visual that I would like to create a MAX value for.  The MAX should not use any of the filters on the GAUGE visual so I am using ALL function.  However I want to Filter on the ALL results by DateCreated so that the total count is only records created after a certain date.

 

This is what I am using but it is not filtering by the datecreated so I am getting totalrows in the entire table.  How can I fix this?  thanks!

 

TotalRows = COUNTX(FILTER(ALL(Requests),[DateCreated]>3/17/2017),[DateCreated])
1 REPLY 1
goncalogeraldes
Super User
Super User

Hello there @hmeltonPSL ! Try this:

TotalRows = COUNTX(FILTER(ALL(Requests),[DateCreated]> DATE(2017, 3, 17)),[DateCreated])

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.