Forum Discussion
Filter Time
- 6 years ago
Hi 170323003 ,
We can't add measure to page -level filter, just change the measure to the column:
Measure = VAR weekdayb = WEEKDAY ( Reserves[Date Booking], 2 ) VAR weekdayr = WEEKDAY ( Reserves[Date], 2 ) RETURN IF ( weekdayb - 6 < 0 && weekdayr - 6 < 0 && HOUR ( Reserves[Date Booking] ) >= 8 && HOUR ( Reserves[Date Booking] ) <= 19 && HOUR ( Reserves[Date] ) >= 8 && HOUR ( Reserves[Date] ) <= 19, 1, 0 )add it to the page level filter and set it 'is equal to'1
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
HI v-deddai1-msft ,
Ty for ur answer, i think is that. Although, i can't add the filter. I mean, i add it but doesnt do nothing.
I added the measure at right. I cant put her in the zone "filters on this page"!
TY
Hi 170323003 ,
We can't add measure to page -level filter, just change the measure to the column:
Measure =
VAR weekdayb =
WEEKDAY ( Reserves[Date Booking], 2 )
VAR weekdayr =
WEEKDAY ( Reserves[Date], 2 )
RETURN
IF (
weekdayb - 6 < 0
&& weekdayr - 6 < 0
&& HOUR ( Reserves[Date Booking] ) >= 8
&& HOUR ( Reserves[Date Booking] ) <= 19
&& HOUR ( Reserves[Date] ) >= 8
&& HOUR ( Reserves[Date] ) <= 19,
1,
0
)
add it to the page level filter and set it 'is equal to'1
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai