Forum Discussion
Prefiltering table with VAR referencing to another table?
- 7 years ago
Hi Anonymous
Create relationship as below
Create calcuated columns in 'UTILIZATION' table
related_start = RELATED(AIRCRAFT[start]) related_start = RELATED(AIRCRAFT[start]) filter_column = IF([date]>=[related_start]&&[date]<=[related_end],1,0)
Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
Create relationship as below
Create calcuated columns in 'UTILIZATION' table
related_start = RELATED(AIRCRAFT[start]) related_start = RELATED(AIRCRAFT[start]) filter_column = IF([date]>=[related_start]&&[date]<=[related_end],1,0)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous7 years agoNot applicable
Hi v-juanli-msft,
Thank you very much for your prompt reply.
It's indeed a very simple solution but I hadn't come accross the RELATED formula.
I guess this might decrease performance as I'm adding two more calculated columns, but it seems to work perfectly. I will have to implement it in the real case but I don't think there should be any other problems rising from this.
Thanks again and regards!