Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to Solution.
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.
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.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |