My requirement is to calculate the records records within a particular month.
I have a month table separately and in other table i have startdate and enddate. All the dates in the month table are set to first date of each month. Startdate and Enddates are generated as per their start and end dates. Now, i need to count the number of records entered into the system on that particular month.
I used DAX formula as IF(StartDate <= MonthDate && EndDate >= MonthDate, 1, 0).
Issue here is, as MonthDate is set to starting of every month, when the StartDate is greater than the MonthDate , record is not getting counted (though it's in the same month).
(Example: StartDate = 03/10/2019, EndDate = 12/31/2019, MonthDate = 03/01/2019). I need to do a calculation ONLY based on month and year value.