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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
aporwal
Frequent Visitor

How can i recall a list value within the same column after regular intervals.

In below examples,i need a column (Sum of QOH) which has Logic = Sum of P_QOH(W1) + Inbound(W1) - Outbound(W1),
but P_QOH column has values only for week 1 and i need to calculate this for lets say "n" no. of weeks.
even the values which we get in column (Sum of QOH) W1 should behave as value for Sum of P_QOH (W2) for the rest of the calculation so the logic becomes Sum of QOH(W2) = Sum of QOH(W1) + Inbound(W2) - Outbound(W1).
my data is in below format, 

ItemCSiteWeekConSum of P_QOHSum of InboundSum of OutboundSum of QOH(desired)
100100010-152061402163518451
100100111-11011190149799622
100100212-11562001562
100100313-118062066617396
100100414-13300003300
100100515-152800528
100100616-139604300396043
100100020-205889449597527748
100100121-200625693366
100100222-200661496
100100323-20822849625128
100100424-2007302570
100100525-2000528
100100626-205066642049404660
1 ACCEPTED SOLUTION

Hey,
got the solution and it work fine, refer below logic

Sum of QOH(desired)
= SUMX(FILTER(Sheet1,Sheet1[Site]=EARLIER(Sheet1[Site])&&Sheet1[ItemC]=EARLIER(Sheet1[ItemC])&&Sheet1[Week]<=EARLIER(Sheet1[Week])),Sheet1[QOH])

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

I assume you want a measure (and not a calculated column) solution.  If that is indeed the case, then share share the download link of the PBI file.  Ensure that there is

  1. A Date column in your raw data table
  2. A Calendar Table with a week number column

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hey,
got the solution and it work fine, refer below logic

Sum of QOH(desired)
= SUMX(FILTER(Sheet1,Sheet1[Site]=EARLIER(Sheet1[Site])&&Sheet1[ItemC]=EARLIER(Sheet1[ItemC])&&Sheet1[Week]<=EARLIER(Sheet1[Week])),Sheet1[QOH])
lbendlin
Super User
Super User

Why is the result in Row 3 not picking up the values from rows 1 and 2 ?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.