Join 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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
My Data:
Table1 with columns "ID", "Creation Week", and "Closure Week", e.g.
| ID | Creation Week | Closure Week |
| 1 | 2004-01 | 2004-01 |
| 2 | 2004-01 | 2004-02 |
| 3 | 2004-02 | 2004-02 |
| 4 | 2004-03 | 2004-03 |
My Goal:
I want a visual with the weeks on the X-axis counting IDs created in that week (one bar) and IDs closed in that week (another bar). Hence, for the above data, output should be like:
| x | o | |
| xo | xo | xo |
--------------
01 02 03 (x = created, o = closed)
My Challenge:
I can easily get this done if I user Power Query to aggregate before, but I want to to have another visual which is linked and displaying the details, i.e. more or less the original table which should be filtered if I click on one of the bars. This works also fine if I just make that char for created or for closed, but anyone an idea how to get that working with both in the same visual?
Solved! Go to Solution.
This solution requires a Weeks table consisting of each possible week. You can create this in Power Query or DAX. This table has no relationship with the data table. Here's a DAX calculated table (I renamed the resulting column to Week):
Weeks =
DISTINCT (
UNION ( DISTINCT ( Table1[Creation Week] ), DISTINCT ( Table1[Closure Week] ) )
)
Measures:
Count Creation =
CALCULATE (
COUNT ( Table1[ID] ),
TREATAS ( VALUES ( Weeks[Week] ), Table1[Creation Week] )
)Count Closure =
CALCULATE (
COUNT ( Table1[ID] ),
TREATAS ( VALUES ( Weeks[Week] ), Table1[Closure Week] )
)
Use Weeks[Week] in a visual:
Proud to be a Super User!
This solution requires a Weeks table consisting of each possible week. You can create this in Power Query or DAX. This table has no relationship with the data table. Here's a DAX calculated table (I renamed the resulting column to Week):
Weeks =
DISTINCT (
UNION ( DISTINCT ( Table1[Creation Week] ), DISTINCT ( Table1[Closure Week] ) )
)
Measures:
Count Creation =
CALCULATE (
COUNT ( Table1[ID] ),
TREATAS ( VALUES ( Weeks[Week] ), Table1[Creation Week] )
)Count Closure =
CALCULATE (
COUNT ( Table1[ID] ),
TREATAS ( VALUES ( Weeks[Week] ), Table1[Closure Week] )
)
Use Weeks[Week] in a visual:
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 53 | |
| 42 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 123 | |
| 107 | |
| 44 | |
| 32 | |
| 24 |