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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
joshua1990
Post Prodigy
Post Prodigy

Backward calculation from negative and positive values

Hello everybody!

 

I'm looking for a Dax Measure, which shows me from stock of a product up-to-date, the past stocks.

Target is a kind of Bart chart, as shown here:

I have the following data available:

  • Actual Stock Level

  • Negative and positive values per day

The tables are structured as follows:

tblStock

ID Value Date
A1_2500001.12.2019

 

tblBookings

ID Value Date
A1_2-500001.11.2019
A1_2500001.11.2019

 

For the past week, the measure must therefore take the sum from the current stock - the negative entries - the positive entries for last week.

 

How is this to be implemented? Does somebody has any idea? Or a helpful article / blog? Do you need further information?

 

PS: I already asked at reddit for a sulution with no response at the moment: https://preview.redd.it/len7isujuz141.png?width=710&format=png&auto=webp&s=304e222c3e9f349a5799b548b...

 

Best Regards

Joshua

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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