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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all,
I am new to power BI.
I am trying to calculate the daily open pieces.
I am able to do this in excel, but when copieng to PBI I get a cyclic dependency.
Pieces requested = sum of all open pieces on a certain requested dispatch date
Pieces Shipped = sum of all pieces shipped on a certain loaded dispatch date
Backlog Formula = first row // =B3-D3 and from there on =C4-D4
Pieces requested +Backlog = first row // =B3 and from there on =B4+E3
I have tried working with offset, but only get a cyclic dependency.
Is there a solution doing it in this logic?
Much appreciate your help.
BR
Solved! Go to Solution.
Hi @Jaed ,
For this you need to create two different measures:
Pieces Requested + Backlog =
VAR temptable =
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] < MAX ( 'Table'[Date] ) )
RETURN
SUM ( 'Table'[Pieces Requested] )
+ SUMX ( temptable, 'Table'[Pieces Requested] - 'Table'[Pieces Shiped] )
Backlog =
VAR temptable =
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] <= MAX ( 'Table'[Date] ) )
RETURN
SUMX ( temptable, 'Table'[Pieces Requested] - 'Table'[Pieces Shiped] )
If you want to have this based on a column redo the formulas to:
Backlog Column =
VAR temptable =
FILTER ( 'Table', 'Table'[Date] <= EARLIER( 'Table'[Date] ) )
RETURN
SUMX ( temptable, 'Table'[Pieces Requested] - 'Table'[Pieces Shiped] )
Pieces Requested + Backlog Column =
VAR temptable =
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] < EARLIER( 'Table'[Date] ) )
RETURN
'Table'[Pieces Requested]
+ SUMX ( temptable, 'Table'[Pieces Requested] - 'Table'[Pieces Shiped] )
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Jaed ,
For this you need to create two different measures:
Pieces Requested + Backlog =
VAR temptable =
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] < MAX ( 'Table'[Date] ) )
RETURN
SUM ( 'Table'[Pieces Requested] )
+ SUMX ( temptable, 'Table'[Pieces Requested] - 'Table'[Pieces Shiped] )
Backlog =
VAR temptable =
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] <= MAX ( 'Table'[Date] ) )
RETURN
SUMX ( temptable, 'Table'[Pieces Requested] - 'Table'[Pieces Shiped] )
If you want to have this based on a column redo the formulas to:
Backlog Column =
VAR temptable =
FILTER ( 'Table', 'Table'[Date] <= EARLIER( 'Table'[Date] ) )
RETURN
SUMX ( temptable, 'Table'[Pieces Requested] - 'Table'[Pieces Shiped] )
Pieces Requested + Backlog Column =
VAR temptable =
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] < EARLIER( 'Table'[Date] ) )
RETURN
'Table'[Pieces Requested]
+ SUMX ( temptable, 'Table'[Pieces Requested] - 'Table'[Pieces Shiped] )
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you very much 🙂
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 48 | |
| 38 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 79 | |
| 37 | |
| 27 | |
| 25 |