Hello PBI Guru's,
I am attempting to calculate the average price of an item where the $ > 0 and averaged only by the distinct price and not the number of lines (records).Image 1: Data structure
1. List of distinct gear charges
2. Sum of distinct gear charges
3. Correct, expected average of distinct prices.
I've searched and founda few similar posts but was not able to replicate that correct answer. Any help is greatly appreciated.
Go to Solution.
SUMMARIZE ( 'Table', 'Table'[ProductName], 'Table'[Price] ),
Try this, just remplace 'Table' with your table name. This will create the unique list of products and prices, then using averagex, iterate over these to create the average price.
View solution in original post
,NOT(ISBLANK('Table'[Price])) && 'Table'[Price] <> 0
@DataUsurper any chance you can share the data in text not image?
Thank you, that's the format. I was trying it with the Averagex/Summarize swapped. Is there a place where I can only include > 0 records? No blanks or 0s
Join us in the third Triple A event!
It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.
Make sure you didn't miss any of the things that happened in the community in January!