Forum Discussion
MAX DATE from One to Many relationsship
- 5 years ago
Hi, bilingual
You can simply modify the column.
Like:
Column = MAXX(FILTER(Table1,[ID]=EARLIER(Table2[ID])&&[Type]="Flex"),[Date])Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Janey, it works perfectly, if i want to add an extra filter on it, could you be so kind to advise me for adding it to the Column ?
Column = MAXX(FILTER(Table1,[ID]=EARLIER(Table2[ID])),[Date])
Filter "Type" in Table1
Thanks
Hi, bilingual
I have written both column and measure methods, you can use them according to your needs. And I don't have your sample data, so I don't know what you mean about 'Filter "Type" in Table1'. Can you explain it?
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- bilingual5 years ago
Helper V
Sorry for my bad explanation, i need one more condition for Max date, from Table1 there is a column named "Type" and only when Type="Flex" should maxdate be present
- v-janeyg-msft5 years ago
Community Support
Hi, bilingual
You can simply modify the column.
Like:
Column = MAXX(FILTER(Table1,[ID]=EARLIER(Table2[ID])&&[Type]="Flex"),[Date])Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- bilingual5 years ago
Helper V
Thanks a lot, you helped me a lot!