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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to create dax for multiple sumifs like Excel to compare the conditions of string matching.

Please kindly help anyone:

This is my Excel query:
=IF(AND(SUMIF($M$7:$M$15,$M17,$O$7:$O$15)>0,SUMIFS($O$7:$O$15,$M$7:$M$15,$M17,$L$7:$L$15,$L17)=0)=TRUE,"New Product","")

where its functionality is comparing the first range of values
First condition: SUMIF in AND condition: M7 to M15 (Product values) with the M17(resultant particular cell value) and if matches then add all matching same product values and check if its >0,
Second condition: SUMIFS - functionality is comparing the first criteria range of values of product with M7 to M15 (Product values) with the M17 and second ranges of values L7 to L15 (Contract values) with L17 if it matches then add all the matching same contract values and check its equal to 0 
If both the above conditions are true then its New Product or else " ".
I need the same in the POWER BI, please suggest anyone so it would be very helpful.

Table 1 : 
where column names are Contract, Product, Client, Value End, Value Begin
Table 2 :
Product name, Client name

Table 1 Product, Client comparing with the Table 2 Product and Client name
Only Master data table called Sheet containing Contract, Product, Client, Value End, Value Begin

PLEASE KINDLY HELP.

2 REPLIES 2
Anonymous
Not applicable

I have tried it in the dax queries:
Using the reference columns M (Products) and L  (Clients)

Categorywise =

IF(AND(
   
    CALCULATE(SUM(Sheet1[Value Period Begin]),filter(Sheet1,[Value Period Begin]) > 0),

 
CALCULATE (
    SUMX( Sheet1,[Opening ARR]),
    ALLEXCEPT ( Sheet1,  Sheet1[Product],Sheet1[Contract] )
)=0)=TRUE(),"New Product"," "
)

when i run the above query i am getting the error "A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.". Please kindly help.
I dont know whether the above query is right but I couldn't able to get the answer


VijayP
Super User
Super User

@Anonymous 

You have rephrase your questin , Which column represents which Column reference 

i.e., M column - which column in your data and so on.

That helps us to give you the right answer possible ! 

But my suggestion before asking a question if you try to some extent in the dax , it will be a benefit for you to understand the answer!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors