Forum Discussion
Help with adding column to table (one-to-many relationship filter)
- 4 years ago
Hi,
to obtain this table
you have to:
In Table B
- Group by
- then add custom column
- expand Custom
and now Table B looks like this:
You can remove Column Count.
Then in Table A:
- Merge query
- and finally Expand Table B
If this post isuseful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution !
- 4 years ago
Thanks for the suggestions! This is really helpful! Another way I discovered was to add a new column using DAX:
LatestEvent = var _id = [ID]
var _lastDate = CALCULATE(MAX('Table B'[Date]),'Table B'[ID] = _id)
return
calculate( MAX('Table B'[Name]),'Table B'[Date] = _lastDate && _id = 'Table B'[ID])
Thanks for the suggestions! This is really helpful! Another way I discovered was to add a new column using DAX:
LatestEvent = var _id = [ID]
var _lastDate = CALCULATE(MAX('Table B'[Date]),'Table B'[ID] = _id)
return
calculate( MAX('Table B'[Name]),'Table B'[Date] = _lastDate && _id = 'Table B'[ID])