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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

SUMIFS in DAX

I also need help with writing a DAX function to work as  Sumifs.

 

I've 3 tables with quality score and max scores and I'm trying to draw a graph which shows overall perforamance of a person in all the 3 tables.

 

So if I have to write this in excel it would go like this:

=(sumifs(table1score,table1name,name)+sumifs(table2score,table2name,name)+sumifs(table3score,table3name,name))/(sumifs(table2smaxscore,table1name,name)+sumifs(table2smaxscore,table2name,name)+sumifs((table3smaxscore,table3name,name))

 

How can I do the same in power BI?

 

Please help me with this as I've been looking this in the web but couldn't fidn anything at all.

I saw the earlier function but it doesn't work.

 

Regards,

Pradeep Singh

4 REPLIES 4
AlB
Community Champion
Community Champion

Hi @Anonymous 

Can you show a sample of the tables in your data model and an example with the expected result?

Please have a look at these tips for getting your question answered quickly. 

 

Anonymous
Not applicable

Hi AIB,

 

My appologies, please find below the attachements of the tables.

 

Table 1.PNGTable 2.PNGTable 3.PNG

 

 

The result that I want should be like this. As you see it's calculating score achieved by a person from all 3 tables and so as the max score. Rest I've devided score achieved by Max Score. What I'm not able to do is take out score and Max score via DAX.

 

NameScoreMax Score%
Pradeep Singh5850660089%
Debdip Shina1710240071%
Jason Martin860120072%
Steven Milene6330870073%
Justin Smith1350140096%
Nick Jonas860120072%
Sam Smith800800100%

 

I hope you got what I'm trying to explain here.

 

Regards,

Pradeep Singh

AlB
Community Champion
Community Champion

@Anonymous 

Create a one-column table with all the names and create 1 to many relationships with the three tables. If you place the names (from the new table) in the rows of a matrix visual, you can create a measure:

Measure =
DIVIDE (
    SUM ( Table1[Score] ) + SUM ( Table2[Score] ) + SUM ( Table3[Score] ),
    SUM ( Table1[MaxScore] ) + SUM ( Table2[MaxScore] ) + SUM ( Table3[MaxScore] )
)

 

Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.

Cheers  Datanaut

     

Anonymous
Not applicable

I did what you said but it isn't giving me the accurate data.

 

Result.PNG

 

Please see the attached screenshot of the result. What it should give me is shown below.

 

NameScoreMax Score%
Pradeep Singh5850660088.6%
Debdip Shina1710240071.3%
Jason Martin860120071.7%
Steven Milene6330870072.8%
Justin Smith14001400100.0%
Nick Jonas860120071.7%
Sam Smith800800100.0%

 

Thansk for helping me out with this.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.