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
Dev-13
Helper I
Helper I

Drill Down with Custom Message

Hi

I have a drill down chart. The x axis has 2 categories - Category and Sub Category.

 

3 of the Categories do not have a sub category, and the chart is blank when you right click to drill down.

 

When you drill down to the Sub Category, the X axis changes to say (Blank) Sub Category, and the chart is blank.

 

Based on the X axis saying (Blank) Sub Category how can I create a custom message to say 'No data in chart'?

 

I created a card and dropped in a measure. I have tried this measure, but it isn't quite working:

 

 

No data = if(count(table 1[Count of Sub Category]=0),"No data available","")

 

 

 

The syntax half works in that it does display the error message, but it does so on both the Category and Sub Category charts. I only want it to display on the Sub Category charts where they are blank.  

 

 

Does anyone have an idea?

 

 

 

Thanks

 

 

1 ACCEPTED SOLUTION
Adescrit
Impactful Individual
Impactful Individual

Hi @Dev-13 ,

 

How about this:

 

 

No data = if(SELECTEDVALUE([SubCategory]) = BLANK(),"No data available","")

 

So you just need to add the same [SubCategory] field to the measure that is being used in your visuals.

 

 


Did I answer your question? Mark my post as a solution!
My LinkedIn

View solution in original post

1 REPLY 1
Adescrit
Impactful Individual
Impactful Individual

Hi @Dev-13 ,

 

How about this:

 

 

No data = if(SELECTEDVALUE([SubCategory]) = BLANK(),"No data available","")

 

So you just need to add the same [SubCategory] field to the measure that is being used in your visuals.

 

 


Did I answer your question? Mark my post as a solution!
My LinkedIn

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.