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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.