Hi. I try to design database for 'followers' ...

111
New Member

Hi. I try to design database for โ€˜followersโ€™ and โ€˜followingsโ€™.

I have Member, Follow Table. Member has columns like Email, Nickname, Sex, Age, etcโ€ฆ ( key is Email ) Follow has columns Email, FollowerEmail. ( key is concatnate with Email, FollowerEmail ) Two columns reference the Email of Member. In other words, Parent is Member and Child is Follow.

I want to use LinkToFilteredView expression in action like LinkToFilteredView(โ€œMemberโ€, [Email].Follow[Email] = useremail()) to see only my follower ( This expression is virtual to explain my intend ) and

LinkToFilteredView(โ€œMemberโ€, [Email].Follow[FollowerEmail] = useremail()) to see only lists I following. ( Just intended expression ) Of course, The above expression is impossible. Because I think this app support not Accessing a Column in a Child Record ,but Accessing a Column in a Parent Record.

So, Is there access a column in a child record by expression? Have a good day!

0 4 364
4 REPLIES 4

111
New Member

I try other methods not use reference relation. LINKTOFILTEREDVIEW(โ€œPeopleโ€, [Email]= any(select(FollowRelation[FollowerEmail], [LeaderEmail] = useremail()))). but this expression is only one row mapping because of any().

You could check if related follower contains userโ€™s email addressโ€ฆ something like LINKTOFILTEREDVIEW(โ€œMemberโ€,IN(CONCATENATE([Email],USERMAIL()),[RelatedFollowers]))

111
New Member

This is correct! Thank you!

Youโ€™re welcome

Top Labels in this Space