F
Filamentβ€’3mo ago
Jack

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
Jack
Jackβ€’3mo ago
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?
BlackShadow
BlackShadowβ€’3mo ago
Thats not what export is. Probably need to look at summarize
Jack
Jackβ€’3mo ago
Perfect, thats what I was looking for - if its possible or not thank you
BlackShadow
BlackShadowβ€’3mo ago
Just read the docs πŸ˜›
Jack
Jackβ€’3mo ago
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
BlackShadow
BlackShadowβ€’3mo ago
πŸ€·β€β™‚οΈ
Jack
Jackβ€’3mo ago
TY
BlackShadow
BlackShadowβ€’3mo ago
Just try stuff out and you might find it, im not sure if its meant like that
Jack
Jackβ€’3mo ago
Okay thanks