Forum Discussion
Average Products per Transaction
- 7 years ago
Hi,
Write this measure and drag it to your visual
=AVERAGEX(SUMMARIZE(VALUES(Data[Pline]),Data[Pline],"ABCD",COUNTROWS(Data)),[ABCD])
Does this help?
Hi,
Please build a simple example with small numbers and show your exact answer you are expecting.
Oka,
So here is a sample detail of 3 TransID (Invoices) that I ‘m providing for reference.
The below is a summary of that raw data. I took the raw data and calculated the distinctcount PLine for each TransID.
So below is the calculation that I wanted to get at. I took the # of Distinct Pline of each TransID and took the average of the three samples provided.
I hope that this info is easy to follow and anyone needs more info or details I can share that as well.
Thank You,
- Ashish_Mathur7 years agoSuper User
Hi,
Write this measure and drag it to your visual
=AVERAGEX(SUMMARIZE(VALUES(Data[Pline]),Data[Pline],"ABCD",COUNTROWS(Data)),[ABCD])
Does this help?
- MAAbdullah_475 years agoHelper V
Hi Ashish_Mathur I don't know whay you make it bit confusing and complecated what do you means by (ABCD)?
- Ashish_Mathur5 years agoSuper User
That is the title of the column that you wih to add in the SUMMARIZE() function. Please readup on the SUMMARIZE() function.