Forum Discussion
Stacked Bar/Line chart not displaying or summarizing properly
Hi , Anonymous
Can you share a sample pbix file which would help tremendously.
You are unlikely to reach a solution in community forum for this kind of unknown issue that we cannot test and reproduce without a sample file.
You also can create a support ticket or even ask for a phone call support in the ticket.
Best Regards,
Community Support Team _ Eason
Hi, v-easonf-msft
I have uploaded the file at the link below. Thanks for looking.
https://drive.google.com/file/d/1DLfzHuNI3f3HTv6npaRpSYk4jilo-th1/view?usp=sharing
- dedelman_clng6 years ago
Community Champion
Hi Anonymous -
On both graphs on the right, you can use a secondary y-axis to show line values separate from column values. On the formatting section, scroll to the bottom of "Y-axis"and you'll see "Show Secondary". Turn that on and you can have a completely independent axis for the line values.
Hope this helps,
David
- Anonymous6 years agoNot applicable
Hi dedelman_clng , Thank you for the suggestion.
I have tried the secondary axis, however it does not change the summarization which appears to be the problem. I turned the secondary axis on in the example posted previously, and while the data now overlaps, the straight line in the right visual should look like the line in the left visual.
- dedelman_clng6 years ago
Community Champion
It looks like you're trying to graph 2 sets of data (Flow, unstacked_demand) that don't have a relationship with each other. The data model in your example report is very confusing because it is many-to-many relationships all around.
What you should be aiming for is having a Date table, and then creating a relationship with those data tables with dates (Flow, unstacked_demand). You can then use the date column in your Date table as the axis, and you'll be able to associate Flow and unstacked_demand together. Right now, Flow doesn't know about unstacked_demand's date column, nor vice versa.
One other thing to note is that one set of data seems to be continuous (Flow; value every day) while the other is categorical (unstacked_demand; one value per month). Those may not play well together on one graph, as either the monthly data will appear as very tiny line, or the daily data will show as a the value on the same day as the monthly data. The latter behavior is shown below (once I removed some model relationships to allow unranked_demand to be linked to the date table):
Let us know some more information on what the data is and why the relationship are how they are and we may be able to point you further in the right direction.
Hope this helps
David