Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
AlexWest
Creator
Creator

Count ID with below() values

Hi, guys!

I have a table chart

ID| Flag1 (from script)| Flag2 (from script)| below(Flag1) | below(Flag2)

23 | - | - | 1 | 1

23 | 1| 1| - | -

Is there any way to Count these clients who have belowed Flags in KPI Chart? Because by default BELOW func can't be used in COUNT(IF()) construction?

Thanks!

Labels (3)
4 Replies
Gabbar
Specialist
Specialist

try creating those belowed columns in script only, 
because below function in Charts only worlks where one can have data in tabular format, it doesnt work in KPIs.

AlexWest
Creator
Creator
Author

Thanks for advice. Can you help me with a function in script?

Gabbar
Specialist
Specialist

I can but that would require me knowing all fields of table and some of those values as an example,
i wont be able to make the script from above data that will work perfectly.

2 Id with 3 rows each will help a lot.

 

Aditya_Chitale
Specialist
Specialist

@AlexWest ,

Firstly, I would suggest you to replace '-' with '0' in your data. Once done with that, you can use below expression to find the count:

count(if(tab3=Aggr(below(tab1),name) ,1 , null()))

Aditya_Chitale_0-1677241805124.png

 

Regards,

Aditya