Customer by sale ranking

This is a sales ranking report… I dont remember who was looking for something like this…

this is working except that the order is by name and not by sales amount (I dont think this can be done this way).

@{REPORT ENTITY DETAILS:E.Name.asc:(ET=Customers):{0}:,}

[Facturado por Cliente:2,2,2, 2]

>Cliente|Direccion|Barrio|Facturado

{REPORT TICKET DETAILS:EN.Customers,EC.Customers.Address,EC.Customers.Bairro,T.TotalAmount.Sum:(TEN.Customer=$1)}

I someone can modify it would be perfect…

Thanks!!!

G.

T.TotalAmount.Sum.desc

Try that?

yes, was the first think to try… but… each line is a report, so the .ASC or .DSC wont work…

LOL

G.

Ok so why are you feeding in a parameter list? Can you use that expression (ET=Customers) as part of the main Report Tag?

I use this:

{REPORT ORDER DETAILS:EC.Customer.Full Name,O.ExactTotal.sum.desc:(ODI=True) && (TCET=Customers):{0}|${1}}

Note: You may not have custom field Full Name…

I did not do it that way becuase…

I did not know I could do that…

PPPPPPRRRRRRRRRRRRRRRR

SHOW OFF

G.

I dont have a full name, but I do have a Name as primary field:


but I dont seem to find how to show it…

Try E.Name to show primary?

E.Name does not work…

tried everything I could think…

thanks

G.

This is from “Custom Report Tags” Tutorial V4:
EN.<entity type> Entity Name

Just saw you are using REPORT TICKET DETAILS:x So your original syntax should work?

I am using your ta:

{REPORT ORDER DETAILS:EC.Customers.Bairro,O.ExactTotal.sum.desc:(ODI=True) && (TCET=Customers):{0}|${1}}

and this works…

G.

so…
In REPORT ORDER DETAILS I can extract Entity Custom Data, but I cannot get to extract primary field…

What I am missing here?

Thanks!!!

g.

Now you know the rules 'Dog, can’t help if you don’t show your syntax attempt? :grin:

so… you did not look one post above? LOL!!! this time: GOTCHA!!!

G.

haha I could argue that you did not highlight the syntax using "</>" but that would just be an excuse!
But seriously you may have a point I need to barlese here.

Since I use EC.Customer.Full Name (Custom Field) it has the benefit of not requiring Entity Name.

I I edit the post and use the "</>" would it count??

jajajajajaja

thanks!!!

G.

Nup, don’t have an answer we have to refer it onto the umpires to see if they can help you :smile:

umpires?? vampires??

G

The higher powers that know way more than me like Q, Kendash and the big E…

Sorry to bother you @Emre, is there any chance we can access Customer primary field form within this report?

{REPORT ORDER DETAILS:EC.Customers.Bairro,O.ExactTotal.sum.desc:(ODI=True) && (TCET=Customers):{0}|${1}}

I can access Customers Custom data witohou any problems…

Thanks!!!
G.

EN.Entity Type will give you the Primary field. So EN.Customers

I think he means Formatted Entity Name as defined by Primary Field Format setting of Entity Type.

I added EFN.<entity type name> field for it. It will work fine on 5.1.61.