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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Sum of Measure on rows filtered by other Measure

Hi,

 

I know this might me difficult, so I''ll try my best to explain.

Basically I have a Table with some Data fields that looks a bit like this:

 

Product IDViews TotalConversionsMeasure CR

Measure

Target Views

Selling Price

Measure

Filter

15005010%100050A
23006020%100020A
3450102.222%100010A
4400225.5%100040B
Total16501448.72727%10001202

 

What I want is the the calculation

Target Views * Conversion Rate * Selling Price 

from every row that has Filter = "A", summed up into one final number.

 

In this case, it would calculate

50*0,1*50 = 250

60*0,2*20 = 240

10*0,02222*10 = 2,222

______________________

492.222

 

 

What I did to solve this is to create a new Measure

Measure 1 = CALCULATE([Target Views] * [Conversion Rate] * [Selling Price], Filter(Table,[Filter]="A"))

 

The problem with this is that it will work with the overall conversion rate, the average of Target Views and the Sum of Selling Price, which gives a different outcome.

 

I hope I was clear enough Smiley Very Happy

 

Thank you for any help!!

 

Leon

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous -

To iterate over the table, you want to use SUMX. That will calculate row-by-row and then sum the values. Something like:

Measure 1 = SUMX(Filter(Table,[Filter]="A"),[Target Views] * [Conversion Rate] * [Selling Price])

Cheers!

Nathan

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous -

To iterate over the table, you want to use SUMX. That will calculate row-by-row and then sum the values. Something like:

Measure 1 = SUMX(Filter(Table,[Filter]="A"),[Target Views] * [Conversion Rate] * [Selling Price])

Cheers!

Nathan

 

Anonymous
Not applicable


@Anonymous wrote:

@Anonymous -

To iterate over the table, you want to use SUMX. That will calculate row-by-row and then sum the values. Something like:

Measure 1 = SUMX(Filter(Table,[Filter]="A"),[Target Views] * [Conversion Rate] * [Selling Price])

Cheers!

Nathan

 


Thanks nathan, that worked perfectly.


Cheers

Leon

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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