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
fellipea_ao
Helper I
Helper I

How to get sum of values after a multiplication?

Goodnight!

I'm trying to create a measure that basically multiplies a column by a rate obtained from a division, but the total return is not the sum of all fields as shown in print:

fellipea_ao_0-1713994180796.png

How can I solve this problem? I'm gonna try to group the data with summarize, but I dont know if it's the right way.

The value that I want is that: 

fellipea_ao_1-1713994223764.png

My sample data and pbix (link)

fellipea_ao_2-1713994333146.png

 

Here how I created the measures:

 

_Approveds = SUM(DashFraude[approved])
_Bads = CALCULATE(SUM('DashFraude'[fraud]),DashFraude[approved]=1)
_TxFraudApproveds = [_Bads] / [_Approveds]
_Disapprovevds = SUM(DashFraude[disapproved])
_TotalAppDisap = [_Approveds] + [_Disapprovevds]
_InferenceFraudDisapproveds = [_Disapprovevds] * [_TxFraudApproveds]

 

 

 


Thank you for the support.

1 ACCEPTED SOLUTION
gmsamborn
Super User
Super User

Hi @fellipea_ao 

 

I hope I understood your requirement to total the [_InferenceFraudDisapproved] measure.

 

I created a new [_InferenceFraudDisapproveds 2] measure.

 

Original:

_InferenceFraudDisapproveds = [_Disapprovevds] * [_TxFraudApproveds]

 

Mine:

_InferenceFraudDisapproveds 2 = 
    SUMX(
        VALUES( DashFraude[fx_score1] ),
        [_Disapprovevds] * [_TxFraudApproveds]
    )

 

20240424-dash-sample-test-MINE.pbix

 

Let me know how that works.

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

View solution in original post

2 REPLIES 2
gmsamborn
Super User
Super User

Hi @fellipea_ao 

 

I hope I understood your requirement to total the [_InferenceFraudDisapproved] measure.

 

I created a new [_InferenceFraudDisapproveds 2] measure.

 

Original:

_InferenceFraudDisapproveds = [_Disapprovevds] * [_TxFraudApproveds]

 

Mine:

_InferenceFraudDisapproveds 2 = 
    SUMX(
        VALUES( DashFraude[fx_score1] ),
        [_Disapprovevds] * [_TxFraudApproveds]
    )

 

20240424-dash-sample-test-MINE.pbix

 

Let me know how that works.

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

Yes, it's worked. Thank you @gmsamborn  🙂

Helpful resources

Announcements
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!

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.

Top Solution Authors