Forum Discussion
Carried/Brought Forward Tickets - Excluding rows when counting based on a date period
Hi Hichamissa,
I am not clear abour your requirement, did you want to only show 67 in 2019 Sep row, other rows show 0? If so, you could refer to my below sample. If not, please correct me and inform me more detailed information (such as your expected output)
create column like below
Column = STARTOFMONTH(incidents[Modified On].[Date])
then create relationship and measure like below
Measure = CALCULATE(count(incidents[incidentid]), FILTER(incidents,(incidents[Status])="Active"))+0
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Good morning Zoe,
Thanks again for your feedback on this.
My primary aim was to aquire the count of active tickets on the very last day of each month, keeping in mind that I have no field that indicate a specific date for that step "closure" therefore, after a strugle I was lucky to reach this point below which is mirroring the right figures in total. Each row shows the full count for all customers. I have then added several other columns "Raised, Breached, Closed etc" all good so far.
Brought_Carried_F =
ADDCOLUMNS (
FILTER (
CALENDAR ( DATE ( 2014, 1, 1 ), DATE ( 2025, 12, 31 ) ),
DAY ( [Date] ) = 1
),
"YearMonth", FORMAT ( [Date], "YYYY-MMMM" ),
"Date2", FORMAT ( [Date], "dd mmmm yyyy" ),
"ClosedTicketsperMonth", CALCULATE ( COUNT ( incidents[incidentid] ),
FILTER ( incidents, incidents[statecode] <> 0 ),
FILTER ( Incidents, incidents[modifiedon] >= [date] ),
FILTER ( Incidents, incidents[modifiedon] < EDATE([date], 1) )
)
)When I linked the Date in this table to my general date table "Date" that govern the whole report it seems to be missing out on the customers. e.g. Relationships form:
As you can see that the customer filter is not having any affect on the table shown below:
I think the original question I had in this post, is already resolved as per my code above, but a new follow up query has emerged on the back of that which relates to table relationships and how to make it work.
Any Idea?
Kind regards :)
Hicham