Filter by group in export-tool

Hello,

I was wondering if it is possible to only export data of a certain user
group in the python export-tool https://github.com/dimagi/commcare-export?
In our project there are test users and we don't want these user's data to
be included in the exports as the exported data is used for statistics. For
now the only solution we have is to delete the test users and then do the
export, after which we have to create the test users again.

Thanks

Hi Johann

We don't support filtering by group. One approach you could take is to add
an 'Is Test Data' column to your export that maps the user_id to 'True' if
the user is in a know list of test users. Here's the documentation on how
to accomplish that:
https://confluence.dimagi.com/display/commcarepublic/Data+Export+Tool%3A+Tips+and+Tricks#DataExportTool:TipsandTricks-Convertoutputvaluesbasedonamapping

Once you have that data it should be easy to filter out an test data from
the datasets before analysis.

Simon Kelly
Director of Server Engineer | Dimagi

ยทยทยท On 8 June 2017 at 16:56, Johann van Eeden wrote:

Hello,

I was wondering if it is possible to only export data of a certain user
group in the python export-tool
https://github.com/dimagi/commcare-export? In our project there are
test users and we don't want these user's data to be included in the
exports as the exported data is used for statistics. For now the only
solution we have is to delete the test users and then do the export, after
which we have to create the test users again.

Thanks

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.