Exports
Hi all,
Is it possible to create an exporter that gets all the names in my model column 'short_code', groups them, and then shows how many entries in the model the 'short_code' occurs in a totals column?
Thanks.
11 Replies
Yeah i've gone through the docs, im clearly not understanding how its possible to get a distinct list of short_codes
then the total they occur on the model?
Thats not what export is.
Probably need to look at summarize
Perfect, thats what I was looking for - if its possible or not
thank you
If mean you can get averages and stuff
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#aggregating-relationships
Just read the docs π
Yes, I have, but I don't see how it's possible to get a distinct list of short_codes and then the occurrence therein in the model?
you can't mix counts with distinct right? Just doens't make sense - will try use matts excel package instead
π€·ββοΈ
TY
Just try stuff out and you might find it, im not sure if its meant like that
Okay thanks