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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
admin11
Memorable Member
Memorable Member

Problem Statement :- Inventory amount by period Analysis

Hi All

 

Below is the inventory analysis report , i like to add one more probem statment :- Inventory amount by period.

 

Meaning i can know my inventory amount by period. For example :-

 

Period......... Amount 

0-1 year......10K 

1-2 year......5K 

2-3 year......3K 

3-4 year......9K

>5k..............20K 

 

Below are some of the Report i have already created :-

admin11_0-1613104035288.png

Below is my sample PBI file :-

https://www.dropbox.com/s/ezp9jlxsx5406jw/PBT_V2021_306%20Inventory%20problem%20statement.pbix?dl=0

Raw data :-

https://www.dropbox.com/s/sp910ax9dde7bla/INVC_TI.csv?dl=0

 

Hope some one can share with me.

 

Paul Yeo

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@admin11 ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

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

@admin11 , if you want based on today, you can create a new column in INVC

 

Years since = var _1 = DATEDIFF([Last Sales],TODAY(),YEAR)
return 
Switch( True(),
_1<= 1, "  0-1 Year", 
_1<= 2, "  1-2 Year", 
_1<= 3, "  2-3 Year" , "Other"
)
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

4 REPLIES 4
amitchandak
Super User
Super User

@admin11 ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

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

@amitchandak 

Thank you for wanted to provide the solution. what i want is base on the " Last Sales " field , is the date the items sold to customer. for example if the date first row the date 27 Jan 2018 , mean this items already stock for 3 year ago. what i need to compute all the stock items base on Last Sales date and create the report to show year vs amount report.

admin11_0-1613109827646.png

 

@admin11 , if you want based on today, you can create a new column in INVC

 

Years since = var _1 = DATEDIFF([Last Sales],TODAY(),YEAR)
return 
Switch( True(),
_1<= 1, "  0-1 Year", 
_1<= 2, "  1-2 Year", 
_1<= 3, "  2-3 Year" , "Other"
)
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

@amitchandak 

Great it work fine. Thank you

Paul

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors