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
Anonymous
Not applicable

out of stock date

Hi all,

I have table wich one show wich product in which day wasn't out of stock from warehouse.

My last column shows information about how many day was pass from out of stock date until now, but I want to show how many days that product was out of stocked

tempsnip.png

thanks.   

5 REPLIES 5
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

To creat a calculated column as below. If it doesn't meet your requirement, kindly share your sresult to me.

 

out of stock = DATEDIFF('Table'[out of stock date],TODAY(),DAY)

Capture.PNG

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi @v-frfei-msft

Yes your colculatioan shows how days was that product out of stock but...

lets say product X is out of stock from warehouse in 2 days, but if in third day it was available in warehouse your calculation would not work becouse it will show 3 (but product X in third day was available) , and I need  to stop calculation in second day.

CheenuSing
Community Champion
Community Champion

Hi @Anonymous ,

 

Your requirement is not clear.

 

Can you share some data and output required on Google or One Drive and share the link here.

 

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!
Anonymous
Not applicable

dear @CheenuSing , I shared two files, first is all list , and second is only for today 

https://carsondellosa-my.sharepoint.com/:f:/p/vhambardzumyan/Eq0Rf1x4hjFMsS5t1n_y3fgBOnOntIclbQEFRAz...

Hi @Anonymous 

 

Which file to use for finding a solution ?

 

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

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.