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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
JohannB
Helper I
Helper I

Multip[le sum functions

I am currently trying to convert a excel worksheet to Pwower BI but cannot find a proper solution.

The formula used in Excel is '=SUM(((L15*65%)*70%)*10%)+(L15*65%)*70%

The one I am usesing in Power Bi is 

Calc = if(LEFT(Query1[StudentRelationsOfficer].3)="PRO".SUM(((Query1[MonthlyInstallmentAmount]*65%)*70%)*10%)+(Query1[MonthlyInstallmentAmount]*65%)*70%,'SUM(((Query1[MonthlyInstallmentAmount]*90%)+(Query1[less_1_Balance]*10%)

The data i am using is the following 

 

 Dat.JPG

Will appreciate any help

Thank you 

4 REPLIES 4
ConorHG
Helper I
Helper I

Hi @JohannB

 

I can't be 100% sure but try this calc: 

 

Calc = if(LEFT(Query1[StudentRelationsOfficer],3)="PRO",
        SUMX(<TABLE>,(((Query1[MonthlyInstallmentAmount]*.65)*.70)*.10)+
        ((Query1[MonthlyInstallmentAmount]*.65)*.70)),
      SUMX(<TABLE>,(Query1[MonthlyInstallmentAmount]*.90)+(Query1[less_1_Balance]*.10)))

where <TABLE> is your Query1 table.

 

Thanks, 
Conor.

Thank you Conor, The data is a table that is imported from SQL. The formula keeps on giving me the following error

Formula.JPG

Hi @JohannB,

 

Have you tried the solution provided by @ConorHG above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

Hi @JohannB,

 

You nearly have it. You need to have commas ',' instead of full stops '.' and sumx takes two parameters, the table and the query. 

 

You need to add the table to to start of each sumx calc.

sumx(<TABLE>,<QUERY>)

Regards,

Conor.

Helpful resources

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

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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