Forum Discussion
matteob
5 years agoFrequent Visitor
manage table with entry date and exit date
Hi, I have a table with a list of material with a unique code with the relative purchase cost. For each row there is an entry date and an exit date. I would like to be able to view a list with the m...
- 5 years ago
Create a measure to identify the rows in which the date_in is before the minimum date selected and the out_date is after the maximun date selected using:
Code In Stock = VAR InDate = MIN(calendario[Date]) Var OutDate = MAX(calendario[Date]) RETURN COUNTROWS( CALCULATETABLE( VALUES(Foglio1[code]), FILTER(Foglio1, Foglio1[date_in] <= InDate && Foglio1[date_out] > OutDate)))Add this measure to the filter on the visual in the filter pane and set the value to 1.
I've attached the sample PBIX file
matteob
5 years agoFrequent Visitor
@v-janeyg-msft, yes, I tried,
but it doesn't work, the measure gives me the table values only with 0
v-janeyg-msft
Community Support
5 years agoHi, matteob
It's difficult to see the problem with only a formula. Can you share same sample data? So we can help you soon.
Best Regards
Janey Guo
- matteob5 years agoFrequent Visitor
Hi, @v-janeyg-msft,
this is the sample file.
https://www.dropbox.com/s/29wbqudkcaknuhm/date_in_out_test.pbix?dl=0
Thank you very much for your help.
Matteo