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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculate consecutive backlogs over a specific threshold value.

I have a sample data table with given Columns A, B and E. Need to calculate Columns C and D as outputs in Power BI and use Col D in Histogram. Giving a Cyclic reference error as it needs to calculate using a previous value from same column. I have tried using Lookupvalue but still giving cyclic error. Thanks for your kind help -

 

 

image.png

1 ACCEPTED SOLUTION
smpa01
Super User
Super User

@Anonymous  you can write a measure like this

Measure =
CALCULATE (
    [dropPlusRollOver],
    OFFSET ( -1, DISTINCT ( ALL ( 'fact' ) ), ORDERBY ( 'fact'[Date], ASC ) )
)
    + MAX ( 'fact'[Drop] )

 

PFA

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

5 REPLIES 5
smpa01
Super User
Super User

@Anonymous  you can write a measure like this

Measure =
CALCULATE (
    [dropPlusRollOver],
    OFFSET ( -1, DISTINCT ( ALL ( 'fact' ) ), ORDERBY ( 'fact'[Date], ASC ) )
)
    + MAX ( 'fact'[Drop] )

 

PFA

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

Thanks for the response but Column C and Column D have to be output using Column A and Column B and a capacity parameter. i think you used them as input for measures. 

Also i need to sho highlighted Column D in a histogram visual.

@Anonymous  this is a good place to start 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
smpa01
Super User
Super User

@Anonymous  provide a sample data that here that can be copied over to PBI. Power BI at current capacity is unable to extract data from a pic.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

DateDropDrop Plus RolloverLeft from Previous DayCapacity
1/1/20229500  10000
1/2/20221011210112010000
1/3/20228500861211210000
1/4/202286008600010000
1/5/20221112211122010000
1/6/20221200013122112210000
1/7/2022998013102312210000
1/8/2022850011602310210000
1/9/202274009002160210000
1/10/202262336233010000
1/11/20221234412344010000
1/12/2022999912343234410000
1/13/20221122313566234310000
1/14/2022887712443356610000
1/15/2022850010943244310000
1/16/20224500544394310000
1/17/20221322213222010000
1/18/2022850011722322210000
1/19/2022942211144172210000
1/20/2022888810032114410000
1/21/2022777778093210000

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.