Forum Discussion

samlopez313's avatar
samlopez313
Microsoft Employee
5 years ago
Solved

Getting row level context to DAX formula

Hi I have a pivot table that has a rows as Area and then SubArea.      I'm creating a URL that has the Area on the link concatenated, but I want to use the subarea when needed, e.g. when a u...
  • AlexisOlson's avatar
    5 years ago

    This is a situation where ISINSCOPE is useful.

     

    You could use it like this:

    Context =
    IF (
        ISINSCOPE ( Table1[SubArea] ),
        SELECTEDVALUE ( Table1[SubArea] ),
        SELECTEDVALUE ( Table1[Area] )
    )