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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Wael03
Helper I
Helper I

Measure calculation

Hello,

I have a column with the name of a company the number of transaction and the percentage : 

Wael03_0-1690825791905.png

 

I would like to calculate the sum of the transaction for a company + the same number * the percentage. Here is what I have but it doesn't work : 

 

Total 3DS = CALCULATE(SUM('autor ecom'[Auth Tran Count]), 'autor ecom'[3ds indicator] = "3DS") + CALCULATE(SUM('autor ecom'[Auth Tran Count]), 'autor ecom'[3ds indicator] = "3DS") * SELECTEDVALUE('autor ecom'[Abandonment])

If you need more info tell me.

Thank you ! 
1 ACCEPTED SOLUTION

measure = 
var total = sum(transactions)
var abandoned = sumx(transactions * abandoned%)
return
total + abandoned


.....something like that?  (you'll still have to add the filter conditions etc)

View solution in original post

4 REPLIES 4
Wael03
Helper I
Helper I

Thank you I will try that

Wael03
Helper I
Helper I

The thing is that the total of transactions per company is good but I don't know what code to write to tell that I want to multiply it by the column abandonment that correspond to the right company

measure = 
var total = sum(transactions)
var abandoned = sumx(transactions * abandoned%)
return
total + abandoned


.....something like that?  (you'll still have to add the filter conditions etc)

kpost
Super User
Super User

Typically when you see totals not adding up correctly like this and they involve multiplying columns and percentages and row level calculations etc, you need to experiment with SUMMARIZE and/or SUMX 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.