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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SebSchoon1
Post Patron
Post Patron

Compara Actual data AND historical data, modeling problem

Hello,

 

I would like to verify data Compared in the historice, versus the actual data,

 

i think it is  a modelling problem.

 

here is a picture of my concern

 

SebSchoon1_0-1683199059742.png

i would like to use [Clef unique article]

 

calculate daily on hand stock with this formula 

 

Images de stock = CALCULATE(SUMX('Lignes de mouvement (img stock)','Lignes de mouvement (img stock)'[QUANTITE]),'Calendrier'[Date]<=max('Calendrier'[Date]))
 
But i'd like to have the [Collection] from the "Lignes de mouvement (img Stock) Value calculated.
 
because in the table "Base article" it is the last updated values. Which propagate to my lignes de mouvement (img stock)
 
due to relation.
 
any way to consolitate data?
 
Kind regards!
 

 

 

2 REPLIES 2
VijayP
Super User
Super User

@SebSchoon1 

2 thiings ! 

You are using DateTable in measure to get the cumulative value i guess, which is not really required

2nd thing why date table is used if you want to filter data from other table "Lignes de mouvement (img Stock)

 

Create a simple Table visual in that add base artical and add the value you must get the result  with implied calculation!

If not , please share the sample data to resolve it!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hello @VijayP 

 

First of all thank you for the quick reply 🙂

 

I'm using my calendar table because I want to have all values repeated until there's a stock movement.

 

If I do not use the calendar table I only have changes at the time it happens.

So I cannot have the on hand stock daily.

 

My file is 300 mega I don't think I can share it 🙂 but I can for sure provide more details 🤠

 

 

 

 

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 Kudoed Authors