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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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