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

grouping inventory by in stock day from today

Hi,

I want to create a charts shows number of inventories by 1 month, 3months, 6months, 1 year, 2years, 3years old.

I curently created a stock age colum by

 

stock age = TODAY()-'MODEL SORT'[In Stock Date]
 
I wish to update my data weekly so the stock so that the stock age will change.
below is the sample table I've got.
 
Thanks!
stock age.png
 
stock age.png
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

=If([Stock age]<=30,"1 month",if([stock]<=90,"3 months",if([stock]<=180,"6 months".....

 

Complete the IF function.


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

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

=If([Stock age]<=30,"1 month",if([stock]<=90,"3 months",if([stock]<=180,"6 months".....

 

Complete the IF function.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-cherch-msft
Employee
Employee

Hi @Anonymous

 

It seems you need create a new table with group column. Then link them by month columns. Below is the sample file for your reference.

Amount = CALCULATE(DISTINCTCOUNT(Table1[MMD]))+0

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.