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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Data not showing in stacked column chart

 

Hi,

 

I am trying to create a stacked column chart for resource hours by manager. Manager names on X-axis, hours on Y-Axis, and legend contains Resource name. However columns do not appear for 4-5 managers even though they have resources reporting under them. I have tried changing the visual and as well changing the scale. No matter what, the columns do not appear only for those specific managers.  Any suggestion would be appreciated. TIA.

2 REPLIES 2
Anonymous
Not applicable

@Anonymous , make sure to create an EXPLICIT measure, such as:

 

MyMeasure = 
SUM( TableName[ColumnName] )

and then adding this measure to your stacked column chart.  It is NOT best practice to simply drag the numerical column into the values section, and select "sum" from the drop down.  This is an implicit measure, and severely limits Power BI in the types of calculations you can do.

 

MyMeasure show 0s = 
[MyMeasure] + 0

That said, Power BI is similar to a Pivot Table.  If there is no data to show, those values are simply "hidden" in the visual.  If you want to force those values to show up, then you need to add "+ 0" to the end of the measure.

 

This forces a measure that resolves to "null" to resolve to 0 instead.  and a 0 will show up on a graph.

 

Note I explicitly created a separate measure to show values with a 0.  Sometimes you want to show all values, and sometimes you don't.  Do you want your line chart to go out all the way into the future with a line that shows 0?  Maybe, maybe not.  But building 2 separate measures gives you the chance to pick and choose which visuals behave that way.

 

Hope this helps,

 

~ Chris

Anonymous
Not applicable

Thanks Chris. Will implement this and look at the chart.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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