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.
Need Help!
I have a table with Create Date and Close date with States(Open/Close), am looking for a clustered chart that shows both Open and Closed Tickets by Month.
Created Measure:
1. Open Count =
used Date table as a relationship but somehow all months are not visible.
what's wrong?
Solved! Go to Solution.
Hi @Anonymous ,
Try below measures:
Open Count =
CALCULATE (
COUNTROWS ( 'Pending Business Review' ),
FILTER (
ALL ( 'Pending Business Review' ),
(
MONTH ( 'Pending Business Review'[Created Date] )
= MONTH ( MAX ( 'Dates'[Date] ) )
|| MONTH ( 'Pending Business Review'[PBI Release Date] )
= MONTH ( MAX ( 'Dates'[Date] ) )
)
&& 'Pending Business Review'[State(groups)] = "Open"
)
)
Closed Count =
CALCULATE (
COUNTROWS ( 'Pending Business Review' ),
FILTER (
ALL ( 'Pending Business Review' ),
(
MONTH ( 'Pending Business Review'[Created Date] )
= MONTH ( MAX ( 'Dates'[Date] ) )
|| MONTH ( 'Pending Business Review'[PBI Release Date] )
= MONTH ( MAX ( 'Dates'[Date] ) )
)
&& 'Pending Business Review'[State(groups)] = "Closed"
)
)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my raeply as a solution!
Hi @Anonymous ,
What's the relationship between Dates and Pending business Review?
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
this is the relationship with Date to Pending Business Review - Created Date and PBI Release Date
Hi @Anonymous ,
Sorry for the late reply.
The relationship is fine.Based on my understanding,the output seems correct,what is your expected result?
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
The open count is not matching for other than March. ended up creating 2 different charts for the x-axis with the created date and Close Date.
Hi @Anonymous ,
Let's put original data with output together to check this issue:
Here I see the data in September,the total count is 2,is it right?
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
@v-kelly-msft I don't have whole data here, and you're looking at September Release Date not Create Date?
1. Open Count =
Hi @Anonymous ,
Try below measures:
Open Count =
CALCULATE (
COUNTROWS ( 'Pending Business Review' ),
FILTER (
ALL ( 'Pending Business Review' ),
(
MONTH ( 'Pending Business Review'[Created Date] )
= MONTH ( MAX ( 'Dates'[Date] ) )
|| MONTH ( 'Pending Business Review'[PBI Release Date] )
= MONTH ( MAX ( 'Dates'[Date] ) )
)
&& 'Pending Business Review'[State(groups)] = "Open"
)
)
Closed Count =
CALCULATE (
COUNTROWS ( 'Pending Business Review' ),
FILTER (
ALL ( 'Pending Business Review' ),
(
MONTH ( 'Pending Business Review'[Created Date] )
= MONTH ( MAX ( 'Dates'[Date] ) )
|| MONTH ( 'Pending Business Review'[PBI Release Date] )
= MONTH ( MAX ( 'Dates'[Date] ) )
)
&& 'Pending Business Review'[State(groups)] = "Closed"
)
)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my raeply as a solution!
Thank you this is working now!
Hi @Anonymous ,
Glad to help.
Best Regards,
Kelly
Did I answer your question? Mark my raeply as a solution!
Hi,
Share the link from where i can download your PBI file.
Make sure your Dates[Date] and both of your CreatedDate and ReleaseDate are all type Date (not DateTime). Also, it looks like you have Auto Date/Time enabled in the options. It probably isn't the cause of your issue but it is better practice to turn that off and use a Date table like the one you have.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I do have the format as mm/dd/yyyy and am using hierarchy because other reports using the date/month and don't want to use the relationship with other tables in same.pbix
From your pics, I see that your Date columns are type DateTime (see Data Type column). If there is a time component hidden by the format that don't match, you will not get correct filtering and results. Is the third Date column also a DateTime?
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I changed the Data Type = Date with just mm/dd/yyyy and also unchecked the Autotime check box but still no luck.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
78 | |
75 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |