Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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
Will appreciate any help
Thank you
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
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.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 113 | |
| 108 | |
| 38 | |
| 35 | |
| 26 |