Forum Discussion
Many to Many relation applied on grid
Task
TaskId | TaskName | Task Date |
| 1 | Morning Walk | 20/05/2022 |
| 2 | Breakfast | 20/05/2022 |
Task Assingee
| TaskId | ResourceId | IsAssignee | IsOwener |
| 1 | 1 | true | true |
| 1 | 2 | true | false |
Resource
| ResourceId | ResourceName |
| 1 | AB |
| 2 | XY |
Now I need to show the data in grid like the following table
| TaskId | TaskName | TaskDate | Assignee | Owners | |
| 1 | MorningWalk | 20/05/2022 | AB,XY | AB | |
Also Need to add Slicer for Resources to fitler out the data
Tables are well defined and has well joined to each other based on pk->Fk .. In other word, it many to many relation, but unfortunatly, i could find any tutorial/videos or any description to show the data in grid. And more, having above structure, i am unable to apply slicer (resource) on chart having drill down option set with some category and sub category, and then count of Tasks...
Any one can please explain, how to achieve above.. More i have applied group by ,but could not filter out with (assingee/owner) option
Hi, sahmad
Please check the following methods.
Column:
Assignee = CONCATENATEX ( 'Task Assingee', IF ( [IsAssignee] = TRUE, LOOKUPVALUE ( Resource[ResourceName], Resource[ResourceId], [ResourceId] ), BLANK () ), "," )Owener = IF ( [IsOwener] = TRUE, LOOKUPVALUE ( Resource[ResourceName], Resource[ResourceId], [ResourceId] ), BLANK () )Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- v-zhangti
Community Support
Hi, sahmad
Please check the following methods.
Column:
Assignee = CONCATENATEX ( 'Task Assingee', IF ( [IsAssignee] = TRUE, LOOKUPVALUE ( Resource[ResourceName], Resource[ResourceId], [ResourceId] ), BLANK () ), "," )Owener = IF ( [IsOwener] = TRUE, LOOKUPVALUE ( Resource[ResourceName], Resource[ResourceId], [ResourceId] ), BLANK () )Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- sahmadNew Member
Yeah, Thanks a lot, Thats what i was looking for