cancel
Showing results for 
Search instead for 
Did you mean: 

Count two dates

liamcameron
8 - Cloud Apps
8 - Cloud Apps

I have 3 columns DueDate, FinishedDate, ID

 

What i want a metric of, is for a given time period, what is the ratio of finished date / due date

basically, in september, you had 40 records with a duedate in september, but only finished 20... 

the x axis does not HAVE to be duedate or finisheddate, but if it's possible, the x axis should be duedate

 

i've tried the formula (count([Id]),[Months in FinishedDate])/(count([Id]),[Months in DueDate]) but it always just equals 100%... thoughts?

1 ACCEPTED SOLUTION

Benji_PaldiTeam
11 - Data Pipeline
11 - Data Pipeline

Hi @liamcameron ,

If you're looking to calculate the ratio of finished dates to due dates for a given time period, here is an approach you can try:

Scenario 1: If you want to find the ratio of IDs that are finished in the same month as their due date (e.g., in September, you had 40 records with a due date in September, but only finished 20 in September):

 

 
(count([Id]), [Months in FinishedDate], [Months in DueDate]) / (count([Id]), [Months in DueDate])

In this formula:

  • [Months in FinishedDate] = September
  • [Months in DueDate] = September

Scenario 2: If you want to find the ratio of IDs that are finished any time after their due date (e.g., in September, you had 40 records with a due date in September, but only finished 20 anytime after the due date):

(count([Id]), [Months in FinishedDate], [Months in DueDate]) / (count([Id]), [Months in DueDate])

In this formula:

  • [Months in FinishedDate] != N/A
  • [Months in DueDate] = September

Make sure that your conditions for [Months in FinishedDate] and [Months in DueDate] are correctly set according to your requirement. This will help you calculate the accurate ratio of finished tasks to due tasks.

 

If you are trying to create a column chart, use 'months in due_date' as Category and use formula without due_date field.

Benji_PaldiTeam_0-1717742173960.png

 

Feel free to reach out if you have further questions, we're always happy to help 🙂
[email protected] 
Paldi Solutions, Number #1 Sisense Plugins Developer

 

 

View solution in original post

3 REPLIES 3

Benji_PaldiTeam
11 - Data Pipeline
11 - Data Pipeline

Hi @liamcameron ,

If you're looking to calculate the ratio of finished dates to due dates for a given time period, here is an approach you can try:

Scenario 1: If you want to find the ratio of IDs that are finished in the same month as their due date (e.g., in September, you had 40 records with a due date in September, but only finished 20 in September):

 

 
(count([Id]), [Months in FinishedDate], [Months in DueDate]) / (count([Id]), [Months in DueDate])

In this formula:

  • [Months in FinishedDate] = September
  • [Months in DueDate] = September

Scenario 2: If you want to find the ratio of IDs that are finished any time after their due date (e.g., in September, you had 40 records with a due date in September, but only finished 20 anytime after the due date):

(count([Id]), [Months in FinishedDate], [Months in DueDate]) / (count([Id]), [Months in DueDate])

In this formula:

  • [Months in FinishedDate] != N/A
  • [Months in DueDate] = September

Make sure that your conditions for [Months in FinishedDate] and [Months in DueDate] are correctly set according to your requirement. This will help you calculate the accurate ratio of finished tasks to due tasks.

 

If you are trying to create a column chart, use 'months in due_date' as Category and use formula without due_date field.

Benji_PaldiTeam_0-1717742173960.png

 

Feel free to reach out if you have further questions, we're always happy to help 🙂
[email protected] 
Paldi Solutions, Number #1 Sisense Plugins Developer

 

 

jcordell
Community Team Member
Community Team Member

Hello @liamcameron 

I wanted to follow up to see if the solution offered by @Benji_PaldiTeamworked for you.

If so, please click the 'Accept as Solution' button so other users with the same questions can find the answer faster. If not, please let us know so that we can continue to help. 🙂

Thank you.

 

Jacqueline Pacheco

DRay
Community Team Member
Community Team Member

Hello @liamcameron ,

I wanted to follow up to see if the solution offered by @Benji_PaldiTeam worked for you.

If so, please click the 'Accept as Solution' button so other users with the same questions can find the answer faster. If not, please let us know so that we can continue to help.

Thank you.

David Raynor (DRay)