Forum Discussion
Stacked column chart in clustern column chart
- 6 years ago
Hi PhiBu ,
Looking at you data what I did was the following:
- Created a new table with the following values:
Category ID Estimated 1 Internal/External 2 - Added the folowing 3 measures:
Estimated = IF(SELECTEDVALUE('Selection'[ID]) = 1 ; SUM('Jira-Issues'[Estimate Time [h]]]); BLANK()) External = IF(SELECTEDVALUE('Selection'[id]) = 2 ; SUM('Jira-Worklogs'[External Time Spent [h]]]); BLANK()) Internal = IF(SELECTEDVALUE('Selection'[ID]) = 2 ; SUM('Jira-Worklogs'[Internal Time Spent [h]]]); BLANK())Now create a Stacked Column chart with the following setup:
- Axis:
- Month
- Category
- Values
- Internal
- External
- Estimated
Final result is in attach PBIX file (file in May version of PBI).
Be aware that the Hierarchy on the X-Axis need to be kept due to the setup what you can due is to concatenet the labels.
PhiBu , you have check for custom visual for that, I doubt anything in power bi like that
https://community.powerbi.com/t5/Desktop/Clustered-stacked-column-chart/td-p/75515
http://www.defteam.com/stacked-clustered-bar-chart/
https://appsource.microsoft.com/en-us/marketplace/apps?product=power-bi-visuals
- parry2k6 years ago
Super User
PhiBu you can achieve this by using In-hierarchy drill down and can get you the expected output, something like this
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
- PhiBu6 years ago
Helper I
Hello,
Many thanks for the quick response.
The problem is that the actuals (internal and external working times) and the estimated working hours are in different tables. For the x-axes in my diagram I use a label (string format) from the table that also contains the estimated working hours. There is a 1:n relationship between the "Estimated Hours Table" and the "Internal and External Working Hours Table".
The solution with the in-hirachie does not fit. Also the solution with MFelix did not work for me.
Any other ideas? I hope you can help me :).
With kind regards.Best regards.