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

Identify products that haven't been moved in months

Good day

 

I would like to be able to identify which products have not moved in a certain time in the inventory in order to segment them into categories such as: three months without movement, six months without movement, one year without movement.

 

I have the following table, at the beginning of the month it is filled with the quantity in inventory of each product:

DateProductQuantity
01/01/2020Chair50
01/01/2020Table30
01/01/2020TV30
01/01/2020Monitor20
01/02/2020Chair50
01/02/2020Table25
01/02/2020TV30
01/02/2020Monitor20
01/03/2020Chair50
01/03/2020Table15
01/03/2020TV15
01/03/2020Monitor20
01/04/2020Chair50
01/04/2020Table25
01/04/2020TV15
01/04/2020Monitor20

 

You would need to create a filter to be able to put something like:
* Moving
* No movement in three months
* No movement in six months
* No movement in twelve months

 

And according to that filter to be able to filter my report with the information of those products.

How could it be done?

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

For each product category you find the latest date when the value was different from the current date's (last date's) value*. Subtracting both dates gives you how long ago the last movement was for that product.  Compare that value to your buckets. et voila.

 

lbendlin_0-1611623287450.png

 

 

* remember this is context dependent. You need to create the measure in a way that it calculates this for EACH of your dates, unless you specifically only want to show the latest result.  I removed the last data point for Monitor to illustrate that.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

On the data that you have shared, could you show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

For each product category you find the latest date when the value was different from the current date's (last date's) value*. Subtracting both dates gives you how long ago the last movement was for that product.  Compare that value to your buckets. et voila.

 

lbendlin_0-1611623287450.png

 

 

* remember this is context dependent. You need to create the measure in a way that it calculates this for EACH of your dates, unless you specifically only want to show the latest result.  I removed the last data point for Monitor to illustrate that.

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.

Top Solution Authors