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
vanetti
Frequent Visitor

Use SUMX with FILTER with 2 filters

I want to sum the volume of deliveries that has date of deliveries creation(Data Cri ajust) lower than a certan day(Data base) AND has shipping date(Data formatada fat) higher than that that specific day.

 

I manage to get here: 

Volume remessas vivas = sumx(filter(CV_BILLINGLOGGSB;CV_BILLINGLOGGSB[Data Cri ajust]<Planilha1[Data base]);CV_BILLINGLOGGSB[Volume Faturado])

 

Then I tryed to use AND, but got an error:

Volume remessas vivas = sumx(filter(CV_BILLINGLOGGSB;CV_BILLINGLOGGSB[Data Cri ajust]<Planilha1[Data base] and CV_BILLINGLOGGSB[Data formatada fat]>Planilha1[Data base]);CV_BILLINGLOGGSB[Volume Faturado])

 

Can I use the "filter" function inside the "sumx" for 2 or more parameters?

If yes, how?

1 ACCEPTED SOLUTION
KHorseman
Community Champion
Community Champion

The and operator is &&, not the word "and".

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
KHorseman
Community Champion
Community Champion

The and operator is &&, not the word "and".

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Great! Thanks!

There is an AND() function that serves a similar purpose, but it is limited to two arguments. In general I recommend avoiding this function and using the && operator instead, since it allows essentially unlimited conditions to be strung together.





Did I answer your question? Mark my post as a solution!

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.