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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.