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
Syndicate_Admin
Administrator
Administrator

Check stock on previous date

Hello, good morning, I need your help for the following problem:

I have a stock table that tells me the product units today.

I have another table "movimentos" that tells me for each product the inputs and outputs that you have made every day.

With a filter from the date I want to know the inventory value of the products to the date of today, I get the moves in the period,

and by difference with stock I get the inventory.

Now I need to compare that inventory with previous periods. How can I get the moves from a year ago to today, from

two years to this day?...

I try the measure:

Moviments_year-1 = CALCULATE(sum(PBI_MOVIMIENTOS[Cantidad]), PARALLELPERIOD(Calendari[Date],-1,YEAR))

But since it's out of the filter, the field is empty.

Stock table

Product

Amount

Product 1

5

Tabla Movimentos

Product

Movements

Date

Product 1

+2

12/08/20

Product 1

-1

15/10/20

Filter: 31/01/21 to this day

Thanks a lot.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Syndicate_Admin, see how to work with the previous non-continuing date on my blog

Intelligence of the day - Last day, last day not continuous
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5c3243d...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Syndicate_Admin, see how to work with the previous non-continuing date on my blog

Intelligence of the day - Last day, last day not continuous
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5c3243d...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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