Results 1 to 3 of 3

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

  1. #1
    Acolyte Charley's Avatar
    Join Date
    Jul 2017
    Posts
    61
    Articles
    0
    Excel Version
    365

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



    Register for a FREE account, and/
    or Log in to avoid these ads!

    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.

  2. #2
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,273
    Articles
    0
    Excel Version
    Office 365 Subscription
    Erm ...
    Ali
    Enthusiastic self-taught user of MS Excel!

  3. #3
    Acolyte Charley's Avatar
    Join Date
    Jul 2017
    Posts
    61
    Articles
    0
    Excel Version
    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •