Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Count number of item is 180 days old

Hello All

 

I am trying to get the number of items which is passed 180 days of a time period. 

 

I did tired Measure but it did not work

I have 2different kind of document and both need to be count individual. 

 

CALCULATE(COUNTROWS('Native Documents'), 'Native Documents'[Document Type]="SOP", 'Native Documents'[Document Owner Approval Date]>= 180)
 
Any help will be appreciated
 
Thank you
1 ACCEPTED SOLUTION
JIGAR
Resolver IV
Resolver IV

@Anonymous 

 

If I understood this correctly, you need to show count of documents which are 180 days old. You will have to modify your measure formula. Please see the below formula :

 

CALCULATE(COUNT(Native Documents[DocumentID]),FILTER(Native Documents,'Native Documents'[Document Type]="SOP" ),FILTER(Native Documents,DATEDIFF(Native Documents[Document Owner Approval Date],TODAY(),DAY) > 180))

 

Hope this helps !!

 

Please mark it as accepted if this was appropriate.

 

Thanks

View solution in original post

4 REPLIES 4
JIGAR
Resolver IV
Resolver IV

@Anonymous 

 

If I understood this correctly, you need to show count of documents which are 180 days old. You will have to modify your measure formula. Please see the below formula :

 

CALCULATE(COUNT(Native Documents[DocumentID]),FILTER(Native Documents,'Native Documents'[Document Type]="SOP" ),FILTER(Native Documents,DATEDIFF(Native Documents[Document Owner Approval Date],TODAY(),DAY) > 180))

 

Hope this helps !!

 

Please mark it as accepted if this was appropriate.

 

Thanks

Anonymous
Not applicable

Hi @JIGAR 

 

I will try your formula. 

 

Yes, it has to count the Number of SOP Document is over 180 days. 

 

Thank you 

@Anonymous 

 

Great.

 

Mark it as accepted if the solution was appropriate.

 

Thanks

calerof
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

How about sharing some sample data to try to help you?

 

Regards,

 

Fernando

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.