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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Text in stacked bar when no data - how?

Hi,

 

I have a stacked bar displaying some measures.

 

Is it possible to display a message like "This has not been assessed" or "There is no data" in place of the bar where a condition is met?

 

I can see no way to place custom text into the chart, how would I do this?

 

Using a custom visual chart generator is way beyond my capabilities at the moment to achieve this.

1 ACCEPTED SOLUTION

Honestly speaking, a bar of ZERO LENGTH next to bars of data pretty much sums it up. Why would you explicitly need to state: "There is no data for this member"?

Oh, let me guess, because 'that's the way they have seen it in the old system so they expect the same here.' How close am I?

 

If that's the case, then I will give you my honest suggestion, if you can: Cut your losses on this, go with what you can get, and try to wow the users with other features to make them forget about this extrememly minor shortcoming. Stuff like native support for mobile platforms, usage reports on the service, maybe even a Key Influencers grapph. Basically, convince the users that even though they can't see it THAT way doesn't make it a bad product. 

 

Best of luck




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
ToddChitt
Super User
Super User

Power BI only shows you data that is actuall THERE, and can't show things that are NOT there. I don't think it has the ability to show test of "Missing data for this column" or similar.

 

Suppose you sell Widgets in variants of A, B, C, and D. You create a Column Chart showing Sales by Variant and you have four columns, one for each of the Variants. 

But then for one particular time slice, you didn't sell any widgets of Variant C. Your Column chart will now have only THREE columns, not four. 

The only way to get around that is to have a DIMENSION that lists all the Widget Variants, and relate this back to the Sales table. Then set up a MEASURE = IF ( ISBLANK ( SUM(Sales) ), 0 SUM(Sales) ). 

That way, at least the variant with no data will show up with 0.

 

I know, now what you want, but better than nothing.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Anonymous
Not applicable

Hi there,

 

Thanks for the follow up 🙂

 

I guess I can make a bar that is the full length of the max value and then make it black or something instead.

I need the blank one to be there as the users wanted to know it had been reviewed and there was just no data present. Its part of some audits.

 

Is there any way to do custom data labels in the standard visuals so I could change the text value? Or would I need a custom visual to do anything like that?

 

Cheers

Honestly speaking, a bar of ZERO LENGTH next to bars of data pretty much sums it up. Why would you explicitly need to state: "There is no data for this member"?

Oh, let me guess, because 'that's the way they have seen it in the old system so they expect the same here.' How close am I?

 

If that's the case, then I will give you my honest suggestion, if you can: Cut your losses on this, go with what you can get, and try to wow the users with other features to make them forget about this extrememly minor shortcoming. Stuff like native support for mobile platforms, usage reports on the service, maybe even a Key Influencers grapph. Basically, convince the users that even though they can't see it THAT way doesn't make it a bad product. 

 

Best of luck




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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