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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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