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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Prath
Frequent Visitor

Clustered column chart for count of dates visualization in PowerBI

I am trying to create a report with months in X-axis and count of tickets created/closed on Y-axis from the data shown below. Based on what field I use in X-axis, I am getting different results but all incorrect. My expected result would have created=1/closed=3 in the month of December for reference.

 

Please help me understand what I am missing and how to achieve it.

 

X-axis with months of createddateX-axis with months of createddateX-axis with months of closeddateX-axis with months of closeddateX-axis with months from separate tableX-axis with months from separate tableDataData

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Prath ,

Try this:

1. Create relationships between the two tables. Both "cross filter direction" are "Single".

ONE.PNGONE1.PNG

2. Create measures.

Count of CreatedDate = COUNT('Table'[CreatedDate])
Count of ClosedDate =
CALCULATE (
    COUNT ( 'Table'[ClosedDate] ),
    USERELATIONSHIP ( 'Calendar'[Date], 'Table'[ClosedDate] )
)

3. Create a visual.

closed.PNG

Best Regards,

Icey

 

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

2 REPLIES 2
Prath
Frequent Visitor

@Icey  Thanks for your help. That solved it and learned something new today 😊

Icey
Community Support
Community Support

Hi @Prath ,

Try this:

1. Create relationships between the two tables. Both "cross filter direction" are "Single".

ONE.PNGONE1.PNG

2. Create measures.

Count of CreatedDate = COUNT('Table'[CreatedDate])
Count of ClosedDate =
CALCULATE (
    COUNT ( 'Table'[ClosedDate] ),
    USERELATIONSHIP ( 'Calendar'[Date], 'Table'[ClosedDate] )
)

3. Create a visual.

closed.PNG

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.