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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

DAX MEASURE HELP - Calculate using two filters

Hi,

I am trying to say if an adnumber has bothe a digital and print then +1

 

table looks like

 

10009 INET Advertiser

10009 NEWS Advertiser

10000 Inet Advertiser

10002 Inet Advertiser

 

So for example it would return 1.  

 

My dax code is

 

Print with Digital = CALCULATE(count(insertBK[adnumbr]),titles[mediatype]="INET" && titles[mediatype]="NEWS", userDefs[adoper] <> "BA430" 
&& userDefs[adoper] <> "CA148" 
&& userDefs[adoper] <> "HX355" && userDefs[adoper] <> "MD301")

It only seems to evaluate INET,

 

Thanks

1 ACCEPTED SOLUTION
spuder
Resolver IV
Resolver IV

Hi @Anonymous,

 

in my opinion titles[mediatype] cannot be "INET" AND "NEWS" use OR instead.

 

In this case change && -> ||

View solution in original post

2 REPLIES 2
spuder
Resolver IV
Resolver IV

Hi @Anonymous,

 

in my opinion titles[mediatype] cannot be "INET" AND "NEWS" use OR instead.

 

In this case change && -> ||

Anonymous
Not applicable

Thanks Spuder, will give that a try.

 

Chris

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.