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

Multiple SUMIFS on column

Spoiler
 Hello all, 

I try to replicate this formula in DAX but they all give me error message (Sumx, calculate, lookupvalue...), any tips ? 

Here is a picture of why I try to do : 

Thanks a lot 

Charlotte 

2021-02-23_16-58-15.png

 

 

1 ACCEPTED SOLUTION

@Anonymous ,

 

Great news, happy to help 🙂

 

Please accept the answer as the solution. This will help others with the same problem to find the solution quicker.

 

Thanks,

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thank you very much Pete !! This is working perfectly ! 

@Anonymous ,

 

Great news, happy to help 🙂

 

Please accept the answer as the solution. This will help others with the same problem to find the solution quicker.

 

Thanks,

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




BA_Pete
Super User
Super User

Hi @Anonymous ,

1) In Power Query either go to your sales table or reference your sales table and add this new custom column:

 

personList = {[director], [manager], [rep]}

 

2) Expand this column to New Rows

3) Use your new [personList] field with [sales] to get your required output:

BA_Pete_0-1614097523889.png

Here is the M code that you can copy and paste into a new blank query if you want to see it step-by-step:

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("hY7NCsJADITfJecepNt2fZeyh7BEjWy3un/g25ssCFIQL5kJ84XMusIDa4ABKLEXuSSMnrJH8eMJ3HAEGu+BStF8Mn/yeelA4KxrokgiG5YbUxVnl3n6BiSRmQs15czn/I7+WSlr9AqNqT9JV47dml+M1pIiaq09g3Nv", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [director = _t, manager = _t, rep = _t, sales = _t]),
    addPersonList = Table.AddColumn(Source, "personList", each {[director], [manager], [rep]}),
    expandPersonList = Table.ExpandListColumn(addPersonList, "personList"),
    chgAllTypes = Table.TransformColumnTypes(expandPersonList,{{"director", type text}, {"manager", type text}, {"rep", type text}, {"sales", Int64.Type}, {"personList", type text}})
in
    chgAllTypes

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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