Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Using SWITCH or IF functions to determine which SELECTEDVALUE statement to use

I have situation depending on slicer selection to execute the correct  SelectedValue function.  For some reason I am pulling all records, not just the records being requested. The formats I have...
  • olgad's avatar
    3 years ago

    Is it a measure you are creating(you cannot create a column) ? With the measure switch usually goes with min/max

    switch(max(index),

    1, SelectedValue())