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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
puru85
Helper II
Helper II

Table Chart : Custom Message When No Data is Available

Hi Experts,

I have a Table chart that currently shows only the headers when there is no value for the selected "Day" filter. Instead, I would like to display a custom message: "No data available for the selected period."


puru85_0-1719718972369.png

Attached is the PBIX file for your reference.
TableChart_CustomMessage.pbix

How can I achieve this? Any help would be greatly appreciated!

Thank you!

 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @puru85 

Since we have no way to directly manipulate column headers, there are two alternative approaches to achieve a similar visual effect:

Option 1 (less preferable in my opinion): Create a transparent rectangle that overlays the column headers. This rectangle would be visible when the table is empty and would display colors and text to represent the column headers. However, this approach has the drawback of preventing user interaction with the underlying column headers, such as clicking to sort the table.

The result will look like :

Ritaf1983_0-1719721563371.pngRitaf1983_1-1719721581063.png

To achieve this, you Should create a few measures :

1. For the rectangle color:

object color = IF(NOT ISBLANK([Sales])," #00000000","Red")
2. For the text :
object title = if(ISBLANK([Sales]), "No data available for the selected period","")
3. For the text color :
object text color = IF( ISBLANK([Sales]),"White"," #00000000")
Then create a rectangle and put it on the wanted place on the table:
Ritaf1983_2-1719721793595.png

Via formatting options modify the text according to the created measure:

Ritaf1983_3-1719721912466.png

Then do the same with text color and shape color:

Ritaf1983_4-1719721988591.pngRitaf1983_5-1719722023324.png

The second and preferred option is to simply generate a dynamic table header, as shown in the attached images:

Ritaf1983_6-1719722148032.pngRitaf1983_7-1719722165872.png

To apply this option you can create a measures :

1. 

table title = if(ISBLANK([Sales]), "No data available for the selected period","Sales Details")
2. 
title color = IF(NOT ISBLANK([Sales])," Black","Red")
Ritaf1983_8-1719722288164.pngRitaf1983_9-1719722316459.png

The pbix with 2 options is attached :

Ritaf1983_10-1719722351180.png

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

elitesmitpatel
Super User
Super User

image.pngI have solved it 
please have a look to attachments

https://1drv.ms/u/c/98ab5c39cf328faf/EZHiKsnKKIFNhDb1fZXwZwUBPPhwDnkN_mE2HQL5q5-oCA?e=Qrh2py 

If this response proves helpful, please consider accepting it as the solution. Doing so will assist other members in finding the information more efficiently.

View solution in original post

2 REPLIES 2
elitesmitpatel
Super User
Super User

image.pngI have solved it 
please have a look to attachments

https://1drv.ms/u/c/98ab5c39cf328faf/EZHiKsnKKIFNhDb1fZXwZwUBPPhwDnkN_mE2HQL5q5-oCA?e=Qrh2py 

If this response proves helpful, please consider accepting it as the solution. Doing so will assist other members in finding the information more efficiently.

Ritaf1983
Super User
Super User

Hi @puru85 

Since we have no way to directly manipulate column headers, there are two alternative approaches to achieve a similar visual effect:

Option 1 (less preferable in my opinion): Create a transparent rectangle that overlays the column headers. This rectangle would be visible when the table is empty and would display colors and text to represent the column headers. However, this approach has the drawback of preventing user interaction with the underlying column headers, such as clicking to sort the table.

The result will look like :

Ritaf1983_0-1719721563371.pngRitaf1983_1-1719721581063.png

To achieve this, you Should create a few measures :

1. For the rectangle color:

object color = IF(NOT ISBLANK([Sales])," #00000000","Red")
2. For the text :
object title = if(ISBLANK([Sales]), "No data available for the selected period","")
3. For the text color :
object text color = IF( ISBLANK([Sales]),"White"," #00000000")
Then create a rectangle and put it on the wanted place on the table:
Ritaf1983_2-1719721793595.png

Via formatting options modify the text according to the created measure:

Ritaf1983_3-1719721912466.png

Then do the same with text color and shape color:

Ritaf1983_4-1719721988591.pngRitaf1983_5-1719722023324.png

The second and preferred option is to simply generate a dynamic table header, as shown in the attached images:

Ritaf1983_6-1719722148032.pngRitaf1983_7-1719722165872.png

To apply this option you can create a measures :

1. 

table title = if(ISBLANK([Sales]), "No data available for the selected period","Sales Details")
2. 
title color = IF(NOT ISBLANK([Sales])," Black","Red")
Ritaf1983_8-1719722288164.pngRitaf1983_9-1719722316459.png

The pbix with 2 options is attached :

Ritaf1983_10-1719722351180.png

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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