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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
BugmanJ
Helper V
Helper V

Calculate Separate Moving Value dependant on date and other columns

Good Day All,

I have the following dataset. You will note that its not in any real order and that this data is added to daily

 

Cookie Jar LevelCookie JarDateCustomerShop
90Blue02-Feb-23BillyNYC
52Green03-Feb-23AnneNYC
101Red02-Feb-23GeorgeNYC
55Blue05-Feb-23SalayDenver
73Red05-Feb-23GeorgeNYC
70Blue04-Feb-23BillyNYC
42Green04-Feb-23AnneNYC
65Blue05-Feb-23BillyNYC
55Green01-Feb-23AnneNYC
80Blue03-Feb-23BillyNYC
100Blue01-Feb-23BillyNYC
85Red04-Feb-23GeorgeNYC

 

And what I need to create is data that shows the difference between the Cookie Jar Levels for each Date/Date/Customer/Shop. It call be called "Change since last date".

How can this be done?

Thank you

 

 

6 REPLIES 6
BugmanJ
Helper V
Helper V

Hi @lbendlin 

 

Your view is confusing but take Billy and hence blue cookie jar in NYC.

 

I need a value which tells me the difference between day, so for him it would be 10,10,10,15

 

but I need that for every jar

Wouldn't these values be negative?

 

Billy Blue has values for each day. What do you expect to see for Anne Green?

Technically yes, but if its a calc, i can turn it into a postive.

For anne green, it just be 3, 10. Sure be nice if could work out number of days and then divide the difference by that number but since struggling to do this its probably beyond power BIs abilities.

 Sure be nice if could work out number of days and then divide the difference by that number 

that can be arranged. So For Anne Green on 2/2/2023 it would be 53.5  and 1.5 delta?

That would correct @lbendlin 

lbendlin
Super User
Super User

What is "last date"?

 

Based on this view, what would be the expected outcome?

 

lbendlin_0-1683402584634.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors