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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Showing text and Numeric Values in Matrix

Happy Friday! I am working on a report which shows vacation days for all employees. I have created a matrix visual and would like to have the text 'HOL' show up on days that are holidays (i.e. 12/25 and 1/01). We also would need the hours to appear on the days when an employee took leave and have the total hours for the week. 

 

I do have holidays in the dataset, however holiday dates are not assigned to each employee. Those dates are in the DATE DIM table.

 

Is there a way to write a DAX measure that would have TEXT for Holidays and NUMBERS that SUM for the vacation days? If a DAX measure would not work, maybe a measure to change the background color of the cell would be a better option? 

 

See picture below. Any help would be appreciated.
matrix for pbi community.PNG

1 REPLY 1
lbendlin
Super User
Super User

You can create a measure that eventually produces text all around.  Including for the numbers and the summation. They will need to be converted to text using FORMAT() for example.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.