In a measure, how do I change a row context into a filter context for a text column?

Charley

New member
Joined
Jul 29, 2017
Messages
62
Reaction score
0
Points
0
Excel Version(s)
365
When I use a FILTER function in a measure, how do I filter on a column of text in the current row?

Said another way, how do I change the row context into a filter context for a column of text?

Said still another way, how do I return the textual VALUE from the current row of a column of text?

Thanks.
 

Charley

New member
Joined
Jul 29, 2017
Messages
62
Reaction score
0
Points
0
Excel Version(s)
365
Here's the solution:


FILTER (
ALL (GetTable1),
GetTable1[Text]
= VALUES(GetTable1[Text])
&& GetTable1[Numeric] = VALUES(GetTable1[Numeric])
)

For the numeric value, one would normally use MAX, but VALUES works as well. And VALUES appears to be the only function that Excel can use to return the value of the text in the current row.

Charley
 
Top