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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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.

 

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.

 

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

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.