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
LamSar
Helper III
Helper III

Multiplication using row context

Hello everyone, 

 

I have a question.

I'm trying to calculate a measure "simulated sales", which is the average unit price of Week A * Total volume of Week B.

 

When I select 1 article, the calculation works fine. The moment I select more then 1 article, the result is wrong. It sums up al the average unit prices, then it is sums up all the total volume of Week B. And afterwards it does the multiplication.

But I need the multiplication row by row. 

 

LamSar_0-1656421070566.png

The total I get for the example above is 10210.68, but I need to get 9775.

 

The measures I created are as follows:

Gem ehp Week A =
DIVIDE([Totale Omzet Week A], [Totaal Volume Week A],0)
Totale Omzet Week A = CALCULATE(SUM(Verkoop[BedragInclBTW]), ALL(Promotie),TREATAS(VALUES(VanDatum[Datum]), Datum[Datum]) )
Totaal Volume Week A = CALCULATE(SUM(Verkoop[VerkoopHoeveelheid]),ALL(Promotie), TREATAS(Values(VanDatum[Datum]), Datum[Datum]) )
 
Totaal Volume Week B =
Totaal Volume Week B = CALCULATE(SUM('Verkoop'[VerkoopHoeveelheid]), ALL(Promotie))
 
Any ideas on how to fix this?
1 REPLY 1
amitchandak
Super User
Super User

@LamSar , try a measure like

 

Sumx(Values(Table[RetailArtikelOms]), [Gem ehp Week A]*[Totaal Volume Week B])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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