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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Multiple filters counta

Hello, I 've been trying to solve this measure for a while. Every help is appreciated. 

Data table has different values in Sufix template. Those values are connected with load number and I want to return a number of rows which include both values like A3 and VCG. 

In case load number has both values then returned value shoul be 1. 

 

I have tried many calculation but none return a correct value. 

table.png

 

Here is last calulation i tried:

measure2 = CALCULATE(
COUNTA(Load_data_merged[Load number]),
FILTER(ALL(Load_data_merged[Sufix_template.FDP]),Load_data_merged[Sufix_template.FDP] = "A3" && Load_data_merged[Sufix_template.FDP] = "VCG"))
 

Thank you 

1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

Here is one way to do this:

Data:

ValtteriN_0-1642683262547.png


Dax:

LoadNumbertest = if(countrows(
FILTER(LoadNumber,
LoadNumber[LoadNumber]=MAX(LoadNumber[LoadNumber])
&&LoadNumber[Code]="A3"
||LoadNumber[Code]="VCG"))>1,1,0)
 
End result:

ValtteriN_1-1642683297944.png

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

 





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you 

ValtteriN
Super User
Super User

Hi,

Here is one way to do this:

Data:

ValtteriN_0-1642683262547.png


Dax:

LoadNumbertest = if(countrows(
FILTER(LoadNumber,
LoadNumber[LoadNumber]=MAX(LoadNumber[LoadNumber])
&&LoadNumber[Code]="A3"
||LoadNumber[Code]="VCG"))>1,1,0)
 
End result:

ValtteriN_1-1642683297944.png

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

 





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

Proud to be a Super User!




Helpful resources

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