Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
lherbert501
Post Patron
Post Patron

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 and Entity 1 would have the first 3.

 

Thanks

 

Liam

lherbert501_0-1755077287618.png

 

1 ACCEPTED SOLUTION
jaineshp
Power Participant
Power Participant

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

View solution in original post

3 REPLIES 3
jaineshp
Power Participant
Power Participant

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

jaineshp
Power Participant
Power Participant

Hey @lherbert501,

Calculated Measures

  • Create measures that return BLANK() for Entity 1 Fields 4&5
  • Use DAX like: IF([Entity]="Entity 1" AND [FieldName] IN {"Field4","Field5"}, BLANK(), [Value])
  • Replace original fields with these measures in matrix

Test it first with one field to make sure it gives you the layout you want before applying to all fields.

 

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


Best Regards,
Jainesh Poojara | Power BI Developer

Hi @jaineshp ,

 

If you have 5 measures across the top, how would this work

 

Thankyou

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors