Fixing exclamation marks in enumlist

I have found a solution for my Valid if with the below code where my Bookings[Rooms] is a list of AllRooms[RoomID]. Although, I got this right how ever, this doesnโ€™t reflect the Ref Collumn for the EnumList therefore it shows the yellow excliamation marks. I now want to remove the excliamation marks.

AllRooms[RoomID] - (SELECT(Bookings[Rooms],AND([_THISROW].[Checkin]<=[Checkin],[_THISROW].[Checkout]>[Checkin]))

please, help!

Solved Solved
0 3 148
1 ACCEPTED SOLUTION

I finally fixed this by using Fillter() with IN() function the filter return keys of the room that in the list we want. Therefore

FILTER(โ€œAllRoomsโ€, IN([Key], 
AllRooms[Key]-(SELECT(Bookings[Rooms],AND([_THISROW].[Checkin]<=[Checkin],[_THISROW].[Checkout]>[Checkin])))

View solution in original post

3 REPLIES 3

Steve
Platinum 4
Platinum 4

I finally fixed this by using Fillter() with IN() function the filter return keys of the room that in the list we want. Therefore

FILTER(โ€œAllRoomsโ€, IN([Key], 
AllRooms[Key]-(SELECT(Bookings[Rooms],AND([_THISROW].[Checkin]<=[Checkin],[_THISROW].[Checkout]>[Checkin])))

Thank you, Steve

Top Labels in this Space