The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
25 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |