Forum Discussion
Count a column containing repeating date with time
- 2 years ago
Hi
Here what i did to fix my issue.
I change the data column from Date/Time to Date in the data value (Edit Query) since I don't care about the time and just want the date count.
So, here is the measure that I created and is functionnal for my needs:
Incident Resolved Monthly = COUNTROWS(FILTER('BBD Incidents',[Resolved]>=MIN('Date'[Date])&&[Resolved]<=MAX('Date'[Date])&&NOT(ISBLANK([Resolved]))))Thanks you all for your help !Have i nice day
Hi, patpois
May I ask if this is the expected output you are looking for? Based on your description, I have created many measures to achieve the effect you are looking for. Following picture shows the effect of the display.
Measures:
Month =
MONTH ( 'BBD Incidents'[Resolved] )
Incident Resolved Monthly =
VAR _resolved =
CALCULATE (
COUNTROWS ( 'BBD Incidents' ),
FILTER (
'BBD Incidents',
[Resolved] >= MIN ( 'BBD Incidents'[Resolved] )
&& [Resolved] <= MAX ( 'BBD Incidents'[Resolved] )
&& ISNUMBER ( [Resolved] )
)
)
RETURN
_resolved
If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi
I have try the proposed measure but it get an error :