The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a table (attached) where I have some transactions duplicated....My chalenge is by power BI try to find the average ticket, but by function "AVG" or by "sum spent / sum transactions) is delivering wrong values....
Can you help me, please?
Many thanks in advance,
Rui
Solved! Go to Solution.
SUMMARIZE by transaction ID and then add MIN, MAX or AVERAGE aggregation of Spent (but not SUM)
Then COUNTROWS , SUMX and AVERAGEX the result.
Hi,
Thanks for your answer. Following this example, can you please help me to write the code (I'm a beginner in PBI 🙂 )
Thanks
Rui
many thanks!!!😃
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
11 | |
7 |