cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Clustered column chart for count of dates visualization in PowerBI

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
Highlighted
Community Support
Community Support

Re: Clustered column chart for count of dates visualization in PowerBI

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

Highlighted
Frequent Visitor

Re: Clustered column chart for count of dates visualization in PowerBI

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

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors