Forum Discussion

lherbert501's avatar
lherbert501
Icon for Post Prodigy rankPost Prodigy
1 year ago
Solved

Hide fields in a matrix

Hi,   If data is in a union formatting with 2 entries of entity, is it possible to hide two fields in a power bi visual for e.g. entity 1 below and not entity 2? Entity 2 would have all 5 fields an...
  • jaineshp's avatar
    1 year ago

    Hey lherbert501,

    If you already have 5 measures as columns, you can wrap each one in an IF() that checks the entity.

     

    Field4_Measure =
    IF(SELECTEDVALUE(Entity) = "Entity 1", BLANK(), [Field4_Original])

     

    Do this for Fields 4 & 5 only, and leave the rest unchanged.
    This way Entity 1 will just show blanks for those columns, but Entity 2 will still display them.

     

    Fixed? ✓ Mark it • Share it • Help others!


    Best Regards,
    Jainesh Poojara | Power BI Developer