Skip to main content

Calculations allow you to populate fact sheet fields based on values from other fields. You can set up your calculation logic from scratch, or start with a template and adjust it to your needs. 

Check out this how-to video showing the feature in action:

You can find more information including further coding examples in our documentation.

Hi ​@Max Rickayzen,

These calculations are great!  Do you know if there is an API that will allow you to create calculations programmatically? 


Hello ​@Max Rickayzen ,
is there a documentation for that data and other object/classes available? I saw the import command is available, too, but what packages can be included? - I really appreciate your work, but sometimes the documentations for programming  are weak and missing the necessary detail level (e.g. as for the deliver module in the webhook callback or for the lxpy (pathfinder) package). But perhaps it is somewhere, but I just did not find it. I’d appreciate any further information.

Thank you in advance and best reagards,

Carsten


Hello ​@Max Rickayzen ,
is there a documentation for that data and other object/classes available? I saw the import command is available, too, but what packages can be included? - I really appreciate your work, but sometimes the documentations for programming  are weak and missing the necessary detail level (e.g. as for the deliver module in the webhook callback or for the lxpy (pathfinder) package). But perhaps it is somewhere, but I just did not find it. I’d appreciate any further information.

Thank you in advance and best reagards,

Carsten

Hi ​@Carsten,
the core relevant object is “data”, via which fields and relations of the fact sheet type can be accessed. We’ve added a bullet point in the https://docs-eam.leanix.net/docs/calculations#technical-details about how to access relations, as that was missing beforehand. 
The referenced documentation section also mentions, that import of libraries is not supported (even if we don’t block the keyword).

I hope this information is helpful.

Best regards,

Max


Hi ​@Max Rickayzen,

These calculations are great!  Do you know if there is an API that will allow you to create calculations programmatically? 

@LIX-Fan currently not. It would be an idea for the future, but we don’t have immediate plans for it currently. Feel free to submit your idea on https://roadmap.leanix.net/, so we have it tracked properly. I would be curious to hear why you would want the API access.


We’ve added a bullet point in the https://docs-eam.leanix.net/docs/calculations#technical-details about how to access relations, as that was missing beforehand. 

Can you also access data fields from the other end of the relation?  If so, how?  The document is not clear on this point, and the fields visible on the relation do not seem to include the relation linkage to the other Fact Sheet joined by the relation, only to the data fields on the relation record itself.


We’ve added a bullet point in the https://docs-eam.leanix.net/docs/calculations#technical-details about how to access relations, as that was missing beforehand. 

Can you also access data fields from the other end of the relation?  If so, how?  The document is not clear on this point, and the fields visible on the relation do not seem to include the relation linkage to the other Fact Sheet joined by the relation, only to the data fields on the relation record itself.

Never mind - I think the section on Unsupported Attributes (hidden below some notes and Tips ) 

 

Unsupported Attributes

  • Fields on related fact sheets

Answers my question...


Reply