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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bml123
Post Patron
Post Patron

Measure on matrix row

Hi,

 

I have the data as below in a matrix where Type is in Rows and Amount is in columns.

 

TypeAmount
Shampoo100
Clothes50
 70

 

Whereever there is space, I need to get 'Others' in Type. Type is in rows in the matrix. My expected output is 

 

TypeAmount
Shampoo100
Clothes50
Others

70

 

How do I achieve that?

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @bml123 ,


Convert the above formula from MEASURE to COLUMN whether it meets your needs, refer to the following:

Column =
IF ( 'Table'[Type] = BLANK () || 'Table'[Type] = "", "Other", 'Table'[Type] )

vhenrykmstf_0-1645595215618.png


If the problem is still not resolved, please point it out. Looking forward to your feedback.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-henryk-mstf
Community Support
Community Support

Hi @bml123 ,


Convert the above formula from MEASURE to COLUMN whether it meets your needs, refer to the following:

Column =
IF ( 'Table'[Type] = BLANK () || 'Table'[Type] = "", "Other", 'Table'[Type] )

vhenrykmstf_0-1645595215618.png


If the problem is still not resolved, please point it out. Looking forward to your feedback.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

bml123
Post Patron
Post Patron

Sorry @MarkLaf , it didn't work with calculated column, it is pulling correct with the measure but unable to use it in row in the matrix

Perhaps you can share a snapshot of your model daigram and/or provide a small set of example data? I assumed data like the below when drafting my response:

 

TypeAmount
Shampoo10
Shampoo90
Clothes30
Clothes20
 45
 25

 

Also, please provide a little more info on what "not working" means. E.g. Is the column not producing "Other" where originally blank? Or it looks correct in your table, "Other" shows up when you add rows in your matrix, but the values don't appear correctly?

 

Finally, quick note that your solution will need to get data in a column somehow, rather than use a measure, as only physical columns can be placed in a Matrix row.

MarkLaf
Super User
Super User

You can add a calculated column to your Table with the types column, and use that in your matrix visual:

Types_Label = IF( ISBLANK( 'Table'[Type] ) || 'Table'[Type] = "", "Other", 'Table'[Type] )

 Note: not sure if the blank is empty text or an actual blank/null, so checking for both, but you can just check for the one if you know which it is in your data.

 

You can then rename 'Types_Label' to just 'Type'  for the particular visual.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors