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

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
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.