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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.