Forum Discussion
AmyYang
Feb 22, 2022Brass Contributor
How to create pivot table with median values?
Hi,
I am seeking to make a pivot table that shows the different median values for different countries from a list of table.
Could someone show me how to create pivot table with median values?
Currently, my pivot table only shows average values.
If pivot table is not possible, it would be great if you could show me how to use XLOOKUP function or another function and kindly explain the rationale.
Thank you,
Amy
=IFNA(IF(MATCH(1,(A2=sheet2!$F$2:$F$190)*(sheet1!B2=sheet2!$G$2:$G$190),0),"Match",""),"")
I've tried the formula in the attached file and it returns a match if ID "XYZ" and Account Number "123" are in cells A2&B2 in sheet 1 and in cells F34&G34 in sheet2.
The formula still returns "Match" if ID "XYZ" and Account Number "123" are in cells F111&G111 in sheet 2 for example.
The formula has to be entered with ctrl+shift+enter if one doesn't work with Office365 or Excel 2021.
4 Replies
Sort By
- Detlef_LewinSilver Contributor
- AmyYangBrass ContributorHi Detlef, wow, a pivot table was really created with median values!! Thank you! I will search on how to use Power Query + DAX measure to recreate this for my other files too. Thank you so much!
- Riny_van_EekelenPlatinum Contributor
AmyYang See attached. Have used UNIQUE and FILTER to achieve what you asked for. See the green shaded area in the attached file.
- AmyYangBrass Contributor
Riny_van_Eekelen Hi Riny, that is amazing idea, thanks so much!