Forum Discussion
Data not showing in stacked column chart
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
- Anonymous6 years agoNot applicable
Thanks Chris. Will implement this and look at the chart.