Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 taking into consideration distinct HCs and not all of them?
Thanks,
Solved! Go to Solution.
@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 , Try a measure like
averageX(values(Table[HC]), max(Table[Price]))
or
averageX(Summarize(Table, Table[HC],"_1", max(Table[Price])), [_1])
Hi,
both did not work
@abukapsoun , expected output.
refer if file after signature can help
I am expecting (350+400+600)/3
@abukapsoun ,Please find the attached file after the signature . I think that 450 . refer Avg2, Avg 3
@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 , 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))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |