Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Unique Average Calculation

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

RMSLUIS_0-1709827951788.png

 

2 ACCEPTED SOLUTIONS

Anonymous
Not applicable

many thanks!!!😃

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

SUMMARIZE by transaction ID and then add MIN, MAX or AVERAGE  aggregation of Spent  (but not SUM)

Then COUNTROWS , SUMX and AVERAGEX the result.

Anonymous
Not applicable

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

lbendlin_0-1709857143280.png

 

Anonymous
Not applicable

many thanks!!!😃

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.