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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
JamesGordon
Helper II
Helper II

Filter Error

Hi,

 

I am trying to filter out certain records to create a Card that will illustrate the oldest "Ord date" and displayy age in days.

 

I would like to filter column "INV" with any records that contain number 37 so i can see the corresponding "Ord Date" - below is a screenshot of my DAX with the error - am i doing something wrong?

 

Power Bi ques 2.jpg

 

1 ACCEPTED SOLUTION

Hi @JamesGordon ,

 

If you check your DAX expression correctly, it is missing a closing bracket for COUNTROWS (in red below). Copy hte DAX below and use it:

 

Warranty = CALCULATE(COUNTROWS (Sheet) , Sheet[Inv] = 37)

 

Thanks,

Pragati

 

If this works, Please mark this as a solution!

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

5 REPLIES 5
az38
Community Champion
Community Champion

@JamesGordon 

it looks like you creating a measure you should use like SELECTEDVALUE(Sheet[Inv])=37


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Hi Az28,

 

Thank you for the help - unfortunately i get the following error in the Card?

I am looking to filter out all rows with the number 37 then display the oldest date - do i need to have two filter commands, i.e one to filter out the rows with "37" and another filter commaned to find the oldest date in column "Ord date"?

Power Bi ques 3.jpg

az38
Community Champion
Community Champion

@JamesGordon 

Yes, I didnt notice the greatest problem 🙂

Number of Warranty = 
CALCULATE(COUNTROWS(Sheet), Sheet[Inv]=37)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thanks again,

 

Unfortunately when i try to search for the Column in the sheet it does not appear in the list? As per below -

 

Power Bi ques 4.jpg

 

if i manually type the command in then i get the following error?

Power Bi ques 5.jpg

 

Any further suggestions?

Hi @JamesGordon ,

 

If you check your DAX expression correctly, it is missing a closing bracket for COUNTROWS (in red below). Copy hte DAX below and use it:

 

Warranty = CALCULATE(COUNTROWS (Sheet) , Sheet[Inv] = 37)

 

Thanks,

Pragati

 

If this works, Please mark this as a solution!

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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