Forum Discussion
Selected Value Times Each Row?
Hi all
I am trying to create some kind of formula that would work based on a selected value/what if parameter. My what if parameter is how many days of stock I want to have on hand - it is whole numbers from 1 - 60.
Then I have created a summary table that has Item ID, Month, Average items sold per day, and total items sold during that month. I want to create a formula that multiplies the average number of items sold per day by the stock days on hand (what if parameter). Here is what I've tried -
Try
Inventory Units = DIVIDE ( SUM ( 'Order Data'[ORIG_ORDER_QTY] ), DISTINCTCOUNT ( 'Order Data'[Date Time] ) ) * SELECTEDVALUE ( 'Days of Inventory'[Days of Inventory] )
7 Replies
- tamerj1Community Champion
What is the relationship between the two tables? How does your visual look like?
- ThigsHelper IV
Between which two tables? The summary table? Right now I only have the one table and the what-if parameter, which I have not connected to anywhere. The Days of Inventory is a what-if parameter that simply contains numbers between 1-60.