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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Is there a way to create measure to Sum of Product measure?

I have Table A

 

SnapshotID.1ID.2Avg Demand
2/12/20241A20
2/12/20242A30
1/12/20243B40

 

Table B

 

SnapshotID.1LT
2/12/202412
2/12/202423

 

 There is a data connection between table A & B on ID.1

 2 Slicers to select the snapshot for Table A & Table B

 

 I have created a Measure to calculate LT* Avg Demand

 

Now I want to create another measure which do WT LT* Avg Demand i.e., SUM(LT*Avg Demand) instead of SUM(LT)* SUM(Avg Demand) at ID.2 level.

Sort of do first row wise calculation of LT* Avg Demand and then sum it at ID.2 level.

As current measure is doing SUM(LT)*SUM(Avg Demad).

 

Thanks

Kartik

1 ACCEPTED SOLUTION
tharunkumarRTK
Super User
Super User

You can achieve it using SUMX terative function. Assuming your table B is many side of one to many relationship,

Sumx(tableb, related(tablea[Avg Demand]) * tableb[LT]) 

try the pattern and dont forget to accept my solution if it works.

Tharun

View solution in original post

1 REPLY 1
tharunkumarRTK
Super User
Super User

You can achieve it using SUMX terative function. Assuming your table B is many side of one to many relationship,

Sumx(tableb, related(tablea[Avg Demand]) * tableb[LT]) 

try the pattern and dont forget to accept my solution if it works.

Tharun

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.