Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Filter On Computational Fields

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Colgan
636 Views, 4 Replies

Filter On Computational Fields

Hi Guys,

 

I'm pretty sure the answer is no but sure I'll ask anyway, can you filter on a computational field? I'm using 'DATEDIFF' to get the number of days between two dates. I'd like to set up a view and filter on the computed result(negative days). So a filter on the field as 'Starts with' a '-'.

 

Cheers

 

Saoirse

 

 

4 REPLIES 4
Message 2 of 5
Andrew.Shaw
in reply to: Colgan

Hello Saoirse,

 

This is possible. The way I did it was to ensure that the result was a number and then I added a filter displaying values "less than" 0.

 

 

Filter setting

 

Best regards,

 

 



Andrew Shaw
Premium Support Specialist PLM/PDM
Global Services
Autodesk, Inc.

Message 3 of 5
MMcCabe
in reply to: Andrew.Shaw

Hi Andrew,

 

Thanks so much for the quick response. I need to change my syntax to cast the date difference as an integer so. I'm getting an error with the syntax below:

 

CAST(DATEDIFF('DAY', CONFIRMED_DELIVERY_DATE, SHIPPED_DATE)AS INTEGER)

 

Can you identify where I'm going wrong?

 

Cheers

 

Saoirse

 

 

Message 4 of 5
Andrew.Shaw
in reply to: MMcCabe

Hello Saoirse,

 

Here's an example that manages both negative and positive results:

 

(CASE WHEN DATE3 > DATE1 THEN 1 ELSE -1 END) * to_number(to_char((DATE1 - DATE3),'dd'),'99')

 

Best regards,



Andrew Shaw
Premium Support Specialist PLM/PDM
Global Services
Autodesk, Inc.

Message 5 of 5
Colgan
in reply to: Andrew.Shaw

That's fantastic Andrew. I have my integers now.

Thanks so much for your assistance.

Saoirse

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums