Forum Discussion
Filter Measure Between Dates
- Anonymous6 years ago
I managed to created a count measure that works as I would like;
Count of Active =VAR __SelectedDate = [Selected Date]ReturnCALCULATE(COUNT('Risk Data'[Id]),__SelectedDate>'Risk Data'[FromTT], IF(ISBLANK('Risk Data'[ToTT]), TRUE(), __SelectedDate<'Risk Data'[ToTT]))
But I'm not sure how'd I go about turning this into a true/false filter measure of each risk ID - 6 years ago
hi Anonymous
Anonymous wrote:
I managed to created a count measure that works as I would like;
Count of Active =VAR __SelectedDate = [Selected Date]ReturnCALCULATE(COUNT('Risk Data'[Id]),__SelectedDate>'Risk Data'[FromTT], IF(ISBLANK('Risk Data'[ToTT]), TRUE(), __SelectedDate<'Risk Data'[ToTT]))
But I'm not sure how'd I go about turning this into a true/false filter measure of each risk IDI have test on my side, This formula works well, and what is " I'm not sure how'd I go about turning this into a true/false filter measure of each risk ID"?
Regards,
Lin
- Anonymous6 years ago
Ah sorry, I've just realized if I use my count of acting as the visual level filter, I just need to set it to is greater than 0 to get the effect I was looking for.
The previous response about setting the filter to true was confusing me since it wasn't an IF measure.
I would be curious to see the relationship diagram
If you think about your several tables as fact tables... they should all be able to be joined by a single date table that had a one to many relationship to all of them
If you want to relate the the same date column in each table.
If you want to also relate the other date column, the one you don't seem to be using in your example, I can see that you might need to then have a second date table to relate to all of those columns. Then any filters or slicers should work on all the "fact" tables independantly.
The other option might be.. and I'm reaching here. To have tables which had the error condition and one record for each day it was operative. Then answering questions like, how many errors of each type were open on a certain day would be straightforward, without having to do a lot of equal to or less than style of logic.
I'd love to have a more extended conversation with you about the whole problem.
I managed to created a count measure that works as I would like;
Count of Active =
But I'm not sure how'd I go about turning this into a true/false filter measure of each risk ID
- v-lili6-msft6 years agoCommunity Support
hi Anonymous
Anonymous wrote:
I managed to created a count measure that works as I would like;
Count of Active =VAR __SelectedDate = [Selected Date]ReturnCALCULATE(COUNT('Risk Data'[Id]),__SelectedDate>'Risk Data'[FromTT], IF(ISBLANK('Risk Data'[ToTT]), TRUE(), __SelectedDate<'Risk Data'[ToTT]))
But I'm not sure how'd I go about turning this into a true/false filter measure of each risk IDI have test on my side, This formula works well, and what is " I'm not sure how'd I go about turning this into a true/false filter measure of each risk ID"?
Regards,
Lin
- Anonymous6 years agoNot applicable
Ah sorry, I've just realized if I use my count of acting as the visual level filter, I just need to set it to is greater than 0 to get the effect I was looking for.
The previous response about setting the filter to true was confusing me since it wasn't an IF measure.