Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
For demand planning, I am looking to create an overview of a company in-stock-percentage or ISP.
Challenge is, that I have the same partnumbers on multiple locations and need the ISP as one consolidated percentage of Category regardless of location.
Country | Category | Partnumber | Plant | Inventory |
ES | Drillsystem | part1 | warehouse1 | 2 |
ES | Drillsystem | part1 | warehouse2 | 0 |
ES | Drillsystem | part2 | warehouse1 | 0 |
ES | Drillsystem | part2 | warehouse2 | 5 |
ES | Drillsystem | part3 | warehouse1 | 0 |
ES | Drillsystem | part3 | warehouse2 | 0 |
ES | Drillsystem | part4 | warehouse1 | 0 |
ES | Drillsystem | part4 | warehouse2 | 4 |
ES | Drillsystem | part5 | warehouse1 | 5 |
ES | Drillsystem | part5 | warehouse2 | 2 |
ES | Drillsystem | part6 | warehouse1 | 0 |
ES | Drillsystem | part6 | warehouse2 | 0 |
ES | Drillsystem | part7 | warehouse1 | 5 |
ES | Drillsystem | part7 | warehouse2 | 2 |
ES | Drillsystem | part8 | warehouse1 | 0 |
ES | Drillsystem | part8 | warehouse2 | 5 |
|
Solved! Go to Solution.
Hi @MrKwanorama ,
According to my understanding, you want to calculate the ratio of distinct PartNumber when Inventory<>0 of each Country and each Category, right?
If so , please try:
Drillsysytem ISP =
var _partNo= CALCULATE(DISTINCTCOUNT('Table'[Partnumber]), ALLEXCEPT('Table','Table'[Country],'Table'[Category]))
var _inveNo= CALCULATE(DISTINCTCOUNT('Table'[Partnumber]),FILTER(ALL('Table'),[Country]=MAX('Table'[Country]) && [Category]=MAX('Table'[Category]) && [Inventory]<>0))
return DIVIDE(_inveNo,_partNo)
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @MrKwanorama ,
According to my understanding, you want to calculate the ratio of distinct PartNumber when Inventory<>0 of each Country and each Category, right?
If so , please try:
Drillsysytem ISP =
var _partNo= CALCULATE(DISTINCTCOUNT('Table'[Partnumber]), ALLEXCEPT('Table','Table'[Country],'Table'[Category]))
var _inveNo= CALCULATE(DISTINCTCOUNT('Table'[Partnumber]),FILTER(ALL('Table'),[Country]=MAX('Table'[Country]) && [Category]=MAX('Table'[Category]) && [Inventory]<>0))
return DIVIDE(_inveNo,_partNo)
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Oh - was too fast there. What I need is to calculate the ratio of instock for the category. E.g. if we have inventory on 7 of 10 partnumbers in any plant, the ISP is 70% for the category.
Perfect - thank you so much
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
86 | |
76 | |
74 | |
56 | |
45 |
User | Count |
---|---|
117 | |
105 | |
77 | |
66 | |
64 |