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!
Hi all,
I am having an issue which I hope there is a simple fix for. I am trying to create two calculated columns (I cannot use measures because I need it to calculate row by row) - a sell column and a cost column.
When using these functions:
SELL = CALCULATE(SUM[SELL])*CALCULATE(SUM[QTY])
COST = CALCULATE(SUM[COST])*CALCULATE(SUM[QTY])
I keep getting a circular dependency error - I assume because I am trying to use the quantity in both columns. I tried adding an index column, but that did not solve my issue. I hope there is a simple fix to this that I just cannot find?
Thanks!!!
Solved! Go to Solution.
Hi @SHOOKANSON,
If you want to compute row by rows, then you can use SUMX.
SO for example in your case, you can have
SELL = Sumx( Table, SELL*QTY)
COST=SUMX(Table, COST*QTY)
Please give a sample if you keep having trouble with the formulas,
Ninter
Hi @SHOOKANSON,
If you want to compute row by rows, then you can use SUMX.
SO for example in your case, you can have
SELL = Sumx( Table, SELL*QTY)
COST=SUMX(Table, COST*QTY)
Please give a sample if you keep having trouble with the formulas,
Ninter
I knew I was missing something simple! Thanks!
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 |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 130 | |
| 111 | |
| 48 | |
| 30 | |
| 28 |