Forum Discussion
Problem creating a dates column
- 7 years ago
Try this:
New Column = CALCULATE(MAX(Table1[ColumnB]), ALLEXCEPT(Table1,Table1[ColumnA]))
(LASTDATE instead of MAX should work just as well.)
The ALLEXCPET removes all filter context except for the column(s) specified. Since we want to find the max over matching values in ColumnA, that's the filter context we want to keep.
Try this:
New Column = CALCULATE(MAX(Table1[ColumnB]), ALLEXCEPT(Table1,Table1[ColumnA]))
(LASTDATE instead of MAX should work just as well.)
The ALLEXCPET removes all filter context except for the column(s) specified. Since we want to find the max over matching values in ColumnA, that's the filter context we want to keep.
Nice! IT WORKS!!!
I tried something similar before and failed but your formula worked perfectly!
Thanks a lot Alexis. I have done some nice things with power bi, but i'm new in this world and sometimes a simple task (or not so simple) requires me lots of time to resolve.
Thanks! very appreciated!
- AlexisOlson7 years agoSuper User
Please mark it as a solution if it solved your problem and award kudos (thumbs up) if you feel like it.