Forum Discussion
manage table with entry date and exit date
- 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
Thanks v-janeyg-msft,
I tried with the measure as you said, but unfortunately the table view is not filtered.
matteob ,Have you put it in filter pane?
Like this:
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- matteob5 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-msft5 years ago
Community Support
Hi, 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