Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
reporting_neu
Creator III
Creator III

Add-Ons: GetSelectedCount and field with if-statement

Hello,

I want the chart to only show when a part is selected.

This is basically possible in the properties of the diagram under "Add-Ons" with GetSelectedCount(Part.Part) = 1.

But what can I do if the selection box for parts contains an IF condition.

Here for example:
if(Part.open =1, Part.Part, null())

As soon as a condition is in a selection, the GetSelectedCount no longer recognizes anything.

What can I do?

Labels (3)
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

Try this 

=Count({<Part.open={1}, Part.Part={"$(=if(Part.open=1, Part.Part, null()))"}>} Equip_Number)

 

View solution in original post

2 Replies
Chanty4u
MVP
MVP

Try this 

=Count({<Part.open={1}, Part.Part={"$(=if(Part.open=1, Part.Part, null()))"}>} Equip_Number)

 

reporting_neu
Creator III
Creator III
Author

Perfect! Thank you so much 😄