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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.