Forum Discussion
abukapsoun
Post Patron
6 years agoCalculate distinct
Hi, I need your expertise please I have the following table HC Price X 350 X 350 X 350 Y 400 Y 400 Z 600 Z 600 How can I compute the average price t...
- 6 years ago
abukapsoun - Seems like this should be:
Measure 29 = VAR __Table = SUMMARIZE('Table (29)',[HC],"Average",AVERAGE([Price])) RETURN AVERAGEX(__Table,[Average])Attached PBIX below sig, Page 29.
abukapsoun
Post Patron
6 years agoI am expecting (350+400+600)/3
amitchandak
Super User
6 years agoabukapsoun ,Please find the attached file after the signature . I think that 450 . refer Avg2, Avg 3
- abukapsoun6 years ago
Post Patron
Still not working 😞- Greg_Deckler6 years ago
Community Champion
abukapsoun - Seems like this should be:
Measure 29 = VAR __Table = SUMMARIZE('Table (29)',[HC],"Average",AVERAGE([Price])) RETURN AVERAGEX(__Table,[Average])Attached PBIX below sig, Page 29.
- amitchandak6 years ago
Super User
abukapsoun , what is not working, I can see 450 in card, do you need that at each line ?
Calculate(averageX(Summarize(Table, Table[HC],"_1", max(Table[Price])), [_1]) , all(Table))