Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

1 messure 2 Date Hirarcies in Clustered Chart

I have a column (Incident), and I created a messure Count(Count_of_Incidents), same table has 2 dates columns Create_Date and Resolved_Date.

 

I created Hirarchy on both Date Columns (Yr--> QTR --> Mo).

I want to create a Clusterd column chart, that shows Count_of_Incidents by Create_Date and Count_of_Incidents by Resolved_Date

I shared AXIS with both Hirarchies, but it does not show the data for Resolved_Date.

Apprecitae your help.

 

Dashboard.jpg

 

1 ACCEPTED SOLUTION

@Anonymous,

 

You could add a calculated table.

Calendar =
CALENDARAUTO ()
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may add a calendar table and use measures below.

Measure =
VAR minDate =
    MIN ( 'Calendar'[Date] )
VAR maxDate =
    MAX ( 'Calendar'[Date] )
RETURN
    CALCULATE (
        COUNT ( Table1[incident] ),
        Table1[Create_Date] >= minDate
            && Table1[Create_Date]
            < maxDate + 1
    )
Measure 2 =
VAR minDate =
    MIN ( 'Calendar'[Date] )
VAR maxDate =
    MAX ( 'Calendar'[Date] )
RETURN
    CALCULATE (
        COUNT ( Table1[incident] ),
        Table1[Resolved_Date] >= minDate
            && Table1[Resolved_Date]
            < maxDate + 1
    )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Sorry, I'm new to Power BI. When you say Add Calender Table. Is it an option within Power BI or do I have to create a table in the DB?

@Anonymous,

 

You could add a calculated table.

Calendar =
CALENDARAUTO ()
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.