Compare Text in a Count Expression

Hi,

I am doing this count:

COUNT(SELECT(Races[Sel_1],[Sel_1]=[win])) this give one result

If i do: COUNT(SELECT(Races[Sel_1],[win]=[Sel_1])) and this gives another result

None of the results are correct.

[win] and [Sel_1] are text columns that are referenced to another a table. The text colum is 2 character only for Horse Number. ie: 1,1A, 2,3,4 etc.

I dont know what is happening because in Google Sheets the same comparison is working.


COUNT(
โ€ฆThe list of values of column โ€˜Sel_1โ€™
โ€ฆfrom rows of table โ€˜Racesโ€™
โ€ฆwhere this condition is true: ((The value of column โ€˜Sel_1โ€™) is equal to (The value of column โ€˜winโ€™)))

0 6 158
6 REPLIES 6

Please try once with the following expression

COUNT(SELECT(Races[Sel_1],RIGHT(โ€œ0โ€&[Sel_1],2)=RIGHT(โ€œ0โ€&[Win],2)))

The problem seems to be when [win] is empty or blank. Seems that comparisons are count as equals even if they are not.

COUNT(SELECT(Races[Sel_1],AND(ISNOTBLANK([Win]),[Sel_1]=[win]))) This gives the correct result.

Great. And yes, @Steve has guided nicely on this topic

https://community.appsheet.com/search?expanded=true&q=quirk%20%23ask


3X_d_c_dc3ce19c4715cb0490d2e1c1df1b0ba31395805a.png

I have also problem with the division of the two counts gives 0 no the deimal or percentage.

Thanks.

Please try

[Top Pick Winners]/([Top Races]*1.00)

Thanks a lot. Worked.

Top Labels in this Space