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

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

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.