- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Assistance with look up value with variable and multiple dates
I have two tables. One contains data including customer number and whether they have had a fall and if so, on what dates they have had a fall. As such, it can contain multiple rows for one customer if they have had multiple falls. The other tells me if a customer has been to hospital any number of times so also has multiple rows for one customer. I want to do a look up in the first table which will tell me if a customer has been to hospital within 2 days of having a fall.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@NikkiSavage , Need sample data for that.
example
New column =
var _cnt = countx(Table2, Table2[Customer] = Table1[Customer] && Table2[Date] >= Table1[Date] && Table2[Date] <= Table1[Date] +2),Table2[Customer] ) +0
return
if(_cnt>0, True(), False())
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
10-17-2024 08:23 AM | |||
08-13-2024 10:15 PM | |||
12-09-2024 10:56 AM | |||
08-08-2024 02:05 PM | |||
06-28-2024 09:31 AM |