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
GaTech5510
New Member

Unable to multiply average measure by a static number

Hello,

I'm not exactly sure of why I am unable to figure this one out, but I've got a column (PS_EAC__c) that I've tried to average and multiply by 135.  When I multiply by 135 it multiplies the overall total for PS_EAC__c and not the average.  In the example below the total PS_EAC__c for this opportunity is 172, but the average is 43 (4 rows for product line items).  I've tried this formula and a couple other methods, but instead of providing 43*135=5805 I receive 172*135=23220.  Am I missing something in the formula?  Thank you in advance for any help that you can provide!

 

GaTech5510_0-1658900035137.png

 

Break Even Amt $135 hr = 
IF(
    HASONEVALUE('Project w Quote Lines'[PS_EAC__c]), 
    SUM('Project w Quote Lines'[PS_EAC__c]) * 135,
    SUMX(
        ALLSELECTED('Project w Quote Lines'[Opportunity__r.SBQQ__PrimaryQuote__r.SBQQ__LineItems__r.SBQQ__ProductName__c]),
        CALCULATE(135*(SUM('Project w Quote Lines'[PS_EAC__c])/COUNT('Project w Quote Lines'[PS_EAC__c]))
    )
))

 

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @GaTech5510 ,

 

Please try the following code:

Break Even Amt $135 hr = 
IF(
    HASONEVALUE('Project w Quote Lines'[PS_EAC__c]),
    SUM('Project w Quote Lines'[PS_EAC__c])*135,
    CALCULATE(135*(SUM('Project w Quote Lines'[PS_EAC__c])/COUNT('Project w Quote Lines'[PS_EAC__c]))
        )
    )    

 

You will receive 43*135=5805, the result you want.

vyadongfmsft_0-1659087521898.png

Best Regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yadongf-msft
Community Support
Community Support

Hi @GaTech5510 ,

 

Please try the following code:

Break Even Amt $135 hr = 
IF(
    HASONEVALUE('Project w Quote Lines'[PS_EAC__c]),
    SUM('Project w Quote Lines'[PS_EAC__c])*135,
    CALCULATE(135*(SUM('Project w Quote Lines'[PS_EAC__c])/COUNT('Project w Quote Lines'[PS_EAC__c]))
        )
    )    

 

You will receive 43*135=5805, the result you want.

vyadongfmsft_0-1659087521898.png

Best Regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GaTech5510
New Member

@v-yadongf-msft Thank you Yadong!  This worked.  I think I also messed things up by not creating a measure.  I thought I created one initially, but really I created a new column. 

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

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

Users online (27)