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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Using SUMPRODUCT in dax

Hi All,

I would like to compile a similar table to PowerBI but I need to calculate the totals using DAX. I'm running to an issue especially with the row level context and the total Avg amounts for both Products A & B as I use SUMPRODUCT(Product A:AVG Amount ProductA)/SUM(Product A) = $22.67

Expected result Total AVG amount per month (Jan) = ((80*22)+(64*20))/144 = $21.11
Entire year Avg amount =( (3282*19.90)+(2798*19.90))/ (3282+2798)

 Product A Product BAvg Amount- Prod AAvg Amount- Prod BAvg Amount -All Products
Jan8064222021.11
Feb41211221717.81
Mar58200222222.00
Apr879233222222.00
May88400232323.00
Jun8974231519.37
Jul547146231922.16
Aug742874232021.38
Sep21420231722.49
Oct200222231418.27
Nov100100232222.50
Dec244254232021.47
Total 3282279822.6819.9021.40

 

Please help create a measure 



1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

see attached. Note that your source data structure is not sustainable.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

see attached. Note that your source data structure is not sustainable.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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