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.
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.
Hi PhiBu ,
Using the process that I show should work but probably theres is the need to make some adjustments, can you share a mockup sample of ypur data and relationships?
- PhiBu6 years ago
Helper I
Hey MFelix,
thanks for your help. It looks like that I dont have permission to upload attachments.
The data I used for my mockup sample are:
Jira-Issues
Key Month Estimated Time[h] 6000 20-May 10 7000 20-May 20 8000 20-May 5 1000 20-April 3 2000 20-April 8 3000 20-April 16 Jira-Worklogs
Key External Timespent[h] Internal Timespent[h] 6000 3 6000 3 6000 4 7000 10 7000 10 7000 5 8000 5 1000 4 4 2000 8 3000 4 3000 8 3000 4 I used the column key as relation and created a clustered column chart. The column Month is a sting, not a date value. The result looks like that:
Hope you can copy these tables in MS-Excel and help me with my issue.Best regards and thanks in advance!
- MFelix6 years ago
Super User
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.