Forum Discussion
Count of Workable Inventory
- 3 years ago
Hi sandeep_sharma
Please refer to attached sample file with the proposed solutionCount = COUNTROWS ( FILTER ( 'Table', MAX ( 'Table'[Received Date], 'Table'[Expiredate] ) <= MIN ( 'Date'[Date] ) && COALESCE ( 'Table'[Billed Date], TODAY ( ) ) >= MIN ( 'Date'[Date] ) ) ) - 3 years ago
sandeep_sharma
YesCount = COUNTROWS ( FILTER ( ALL ( 'Table' ), MAX ( 'Table'[Received Date], 'Table'[Expiredate] ) <= MIN ( 'Date'[Date] ) && COALESCE ( 'Table'[Billed Date], TODAY ( ) ) >= MIN ( 'Date'[Date] ) ) )
Hi tamerj1
Is there any way I can connect the workable count with main date table (while it still has relationship with disconnected table). I am trying to create a view where I also need to show month wise sum of tt column however if I use Main date in the view, I dont see workable count as this measure is not connected with main date table. Below is what I can see :
- tamerj13 years ago
Community Champion
sandeep_sharma
YesCount = COUNTROWS ( FILTER ( ALL ( 'Table' ), MAX ( 'Table'[Received Date], 'Table'[Expiredate] ) <= MIN ( 'Date'[Date] ) && COALESCE ( 'Table'[Billed Date], TODAY ( ) ) >= MIN ( 'Date'[Date] ) ) )- sandeep_sharma3 years ago
Helper II
Thanks tamerj1 ....This works! You are awesome!
However this All measure does not allow me to filter the data basis my LOB...any workaround?
- tamerj13 years ago
Community Champion
Count =
COUNTROWS (
FILTER (
CALCULATETABLE ( 'Table', ALL ( 'Date' ) ),
MAX ( 'Table'[Received Date], 'Table'[Expiredate] ) <= MIN ( 'Date'[Date] )
&& COALESCE ( 'Table'[Billed Date], TODAY () ) >= MIN ( 'Date'[Date] )
)
)