Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I want to show the number of items created by year and number of items closed by year on the same clustered column chart. How can I do that?
Solved! Go to Solution.
Hi @sanman
Both of the above solutions can successfully achieve what you want. I illustrate both in my understanding with images below in case you need it.
Solution 1:
1. In query editor, select CreateYear and ClosedYear columns and unpivot them.
2. Create a clustered column chart like below.
Solution 2:
1. Create a year table, then create an active relationship ‘Items (2)’CreateYear(*) – ‘Year’Year(1) and an inactive relationship ‘Items (2)’ClosedYear(*) – ‘Year’Year(1).
2. Create a measure using Userelationship function as below.
Count of Closed = CALCULATE(COUNTROWS('Items (2)'),USERELATIONSHIP('Items (2)'[ClosedYear],'Year'[Year]))
3. Create the clustered column chart.
Best Regards,
Community Support Team _ Jing Zhang
Hi @sanman
Both of the above solutions can successfully achieve what you want. I illustrate both in my understanding with images below in case you need it.
Solution 1:
1. In query editor, select CreateYear and ClosedYear columns and unpivot them.
2. Create a clustered column chart like below.
Solution 2:
1. Create a year table, then create an active relationship ‘Items (2)’CreateYear(*) – ‘Year’Year(1) and an inactive relationship ‘Items (2)’ClosedYear(*) – ‘Year’Year(1).
2. Create a measure using Userelationship function as below.
Count of Closed = CALCULATE(COUNTROWS('Items (2)'),USERELATIONSHIP('Items (2)'[ClosedYear],'Year'[Year]))
3. Create the clustered column chart.
Best Regards,
Community Support Team _ Jing Zhang
@sanman , Create a year table join it with both Create year and close year. One will active another one will be inactive. Use userelation to in the measure to change date
This video has an HR example - but applies here too -
Refer
@sanman - I *think* you need to unpivot your year columns. Use Attribute as the legend, Value as the axis. Count of itemname for value
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |