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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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