Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

hide collapsed row value for Matrix Visualization

Sample Dataset:

JobNum

JobDescAssigned_to

1

Job AAdam
2Job BBob
3Job CCharlie
4Job DCharlie
5Job EEve
6Job FAdam

Goal:

when Matrix is collapsed there is no value shown for job description. (the blank values shown in M_description but for every row)

Attempt so far:

Using a measure to return blank if there is more than 1 associated value as there would be in totals, but this fails when there is only one job associated with a person.

M_Description = IF(HASONEVALUE('Table'[JobDesc]),MAX('Table'[JobDesc]),BLANK())

I feel like there is probably a setting in the visual but I have yet to find it.

  • If(

    Isinscope( table[JobNum]),

    Selectedvalue( table[jobDesc])

    )

2 Replies

  • Deku's avatar
    Deku
    Super User

    If(

    Isinscope( table[JobNum]),

    Selectedvalue( table[jobDesc])

    )

    • Anonymous's avatar
      Anonymous
      Not applicable

      I will caveat that this solution doesn't appear to work if I only use these measures as the values (the entire matrix returns emtpy) but that is not an issue in my use case

      and then it works fine when I add just a regular column.