Bug with "Yes Only" in Analytics

Hello Devs!

We just upgraded quite a few servers to 2.20 and I noticed that we are getting a lot of this while using the pivot tables:
Inline image 1

I’ve found that it is related to the “yes only” fields which worked well in 2.18. A tick or “yes” basically meant a 1 and nothing meant a blank. It was very useful for counting yes’s. It would be great to get this functionality back. FWIW, Yes/No still works as expected:

Inline image 2

^This is a pivot table made in 2.20 using a yes/no variable, 0s are no, 1s are yeses.

image

···

I could only find one other mention in launchpad of this specific error and it appears to only be the commit to add the language to the error dialog box, so probably not very helpful.

         if ( !nonAggDataElements.isEmpty() ) { violation = "Data elements must be of a type that allows aggregation: " + getUids( nonAggDataElements ); }
[https://lists.launchpad.net/dhis2-devs/msg39264.html](https://lists.launchpad.net/dhis2-devs/msg39264.html)

Other Info:
Running version 2.20
Build revision:
19903
Build date:
2015-09-25 19:57
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0

Thanks! Let me know if there is any other info that would be helpful.

Timothy Harding
Sr. Systems Analyst, BAO Systems

+1 202-536-1541 | tharding@baosystems.com | http://www.baosystems.com | Skype: hardingt@gmail.com | 2900 K Street, Suite 404, Washington D.C. 20007ion in

Hi Tim,

this has been fixed in 2.20 now.

regards,

Lars

image

image

image

···

On Sat, Sep 26, 2015 at 10:51 PM, Timothy Harding tharding@baosystems.com wrote:

Hello Devs!

We just upgraded quite a few servers to 2.20 and I noticed that we are getting a lot of this while using the pivot tables:

I’ve found that it is related to the “yes only” fields which worked well in 2.18. A tick or “yes” basically meant a 1 and nothing meant a blank. It was very useful for counting yes’s. It would be great to get this functionality back. FWIW, Yes/No still works as expected:

^This is a pivot table made in 2.20 using a yes/no variable, 0s are no, 1s are yeses.

I could only find one other mention in launchpad of this specific error and it appears to only be the commit to add the language to the error dialog box, so probably not very helpful.

         if ( !nonAggDataElements.isEmpty() ) { violation = "Data elements must be of a type that allows aggregation: " + getUids( nonAggDataElements ); }
[https://lists.launchpad.net/dhis2-devs/msg39264.html](https://lists.launchpad.net/dhis2-devs/msg39264.html)

Other Info:
Running version 2.20
Build revision:
19903
Build date:
2015-09-25 19:57
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0

Thanks! Let me know if there is any other info that would be helpful.

Timothy Harding
Sr. Systems Analyst, BAO Systems

+1 202-536-1541 | tharding@baosystems.com | http://www.baosystems.com | Skype: hardingt@gmail.com | 2900 K Street, Suite 404, Washington D.C. 20007ion in


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

Thanks Lars!

image

image

image

···

On Mon, Sep 28, 2015 at 10:04 AM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Tim,

this has been fixed in 2.20 now.

regards,

Lars

Timothy Harding
Sr. Systems Analyst, BAO Systems

+1 202-536-1541 | tharding@baosystems.com | http://www.baosystems.com | Skype: hardingt@gmail.com | 2900 K Street, Suite 404, Washington D.C. 20007

On Sat, Sep 26, 2015 at 10:51 PM, Timothy Harding tharding@baosystems.com wrote:

Hello Devs!

We just upgraded quite a few servers to 2.20 and I noticed that we are getting a lot of this while using the pivot tables:

I’ve found that it is related to the “yes only” fields which worked well in 2.18. A tick or “yes” basically meant a 1 and nothing meant a blank. It was very useful for counting yes’s. It would be great to get this functionality back. FWIW, Yes/No still works as expected:

^This is a pivot table made in 2.20 using a yes/no variable, 0s are no, 1s are yeses.

I could only find one other mention in launchpad of this specific error and it appears to only be the commit to add the language to the error dialog box, so probably not very helpful.

         if ( !nonAggDataElements.isEmpty() ) { violation = "Data elements must be of a type that allows aggregation: " + getUids( nonAggDataElements ); }
[https://lists.launchpad.net/dhis2-devs/msg39264.html](https://lists.launchpad.net/dhis2-devs/msg39264.html)

Other Info:
Running version 2.20
Build revision:
19903
Build date:
2015-09-25 19:57
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0

Thanks! Let me know if there is any other info that would be helpful.

Timothy Harding
Sr. Systems Analyst, BAO Systems

+1 202-536-1541 | tharding@baosystems.com | http://www.baosystems.com | Skype: hardingt@gmail.com | 2900 K Street, Suite 404, Washington D.C. 20007ion in


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org