cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
altafr
Frequent Visitor

Filter with a 3 tier relationship in CDS

I have 3 related tables in CDS using a canvas app as a front end

 

Project related to multiple tasks 

Each task related to multiple subtasks. 

The table are related using 1-M relationship lookup fields 

 

I want to run a report on all my subtasks. 

 

When i try to Filter using subtask to get to my task i am fine, 

 

But when i try to filter from my subtask and try to reach project attribute it says that its not supported. 

 

So i am trying to do 

 

"Subtask.taksrelID = task.ID and Task.relProjid = Project.ID "

 

If this is not supported - then i am not sure how to proceed to read data from my project when i searching through my subtasks. 

 

any help appreciated. 

1 REPLY 1
yashag2255
Dual Super User II
Dual Super User II

Hi @altafr 

 

Can you try to implement the below expression:

 

Subtask.taksrelID = task.ID and LookUp(TaskDataSource, taskIDColumn = Subtask.taksrelID).relProjid = Project.ID 

 

Here, you need to replace TaskDataSource with the name of datasource for tasks and taskIDColumn with the uniquie identifier of the datasource. You will need to add TaskDataSource in the datasource list.

 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (35,947)