Forum Discussion
stack bar chart
Hi, Anonymous
Thank you for your feedback.
You can create the grouping table exactly the same looking as the above picture that I attached.
If you can share your sample excel file's link here, I can try.
Thanks.
Hi, Jihwan_Kim , Thank you for your reply.
This grouping table can be created by using a new table? and unfortunately, I don't the axis.
Before posting this query I tried creating 4 conditional columns in PBI and then created the stacked graph. but it didn't work. I am attaching the screenshot of the columns.
please have a look.
Thank you.
- Jihwan_Kim5 years agoSuper User
Hi, Anonymous
You can create the grouping table in excel and import it.
Or, you can create the grouping table in power bi manually, like what you do in excel.
It is only a small-size table, and I think there are not many difficulties in creating the grouping table.
And this grouping table already has all the conditions you need. So, you can just simply use this grouping table as a filtering condition.
- Anonymous5 years agoNot applicable
- Jihwan_Kim5 years agoSuper User
Hi,
As I already mentioned in the previous reply, you can create the measure below.
And put the measure into the visualization.
Values Total by group =
SUMX (
FILTER (
VALUES ( 'Calendar'[Date] ),
COUNTROWS (
FILTER ( 'Group', [Days Open] >= 'Group'[Min] && [Days Open] < 'Group'[Max] )
) > 0
),
[Values Total]
)