Count Values Greater Than Measure Average

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi,

Yes it can be done in measure, and i have one suggestion:

1. You can use standard MEDIAN() DAX formula
MEDIAN_NEW:=MEDIAN(Tabela1[Average])


2. Now the calculation looks like this:
Above MEDIAN:=
VAR
MEDIANCALC = [MEDIAN_NEW]
RETURN
SUMX(Tabela1; (Tabela1[Average]>MEDIANCALC)*1)

Variables are used to avoid using allexcept() in median calculations
 
Last edited:
Upvote 0
Hi,

Yes it can be done in measure, and i have one suggestion:

1. You can use standard MEDIAN() DAX formula
MEDIAN_NEW:=MEDIAN(Tabela1[Average])


2. Now the calculation looks like this:
Above MEDIAN:=
VAR
MEDIANCALC = [MEDIAN_NEW]
RETURN
SUMX(Tabela1; (Tabela1[Average]>MEDIANCALC)*1)

Variables are used to avoid using allexcept() in median calculations

ralliartur,

MEDIAN() isnt a function in the 2013 DAX Library. Im using this library.

However, how do I implement this new measure?

All of this below I put into the cell in PowerPivot?
Above MEDIAN:=
VAR
MEDIANCALC = [MEDIAN_NEW]
RETURN
SUMX(Tabela1; (Tabela1[Average]>MEDIANCALC)*1)


Ive tried this syntax, resulting in a error.
 
Upvote 0
ralliartur,
MEDIAN() isnt a function in the 2013 DAX Library. Im using this library.

Sorry, VARS are not in Excel2013 Either

in this case Above MEDIAN:=SUMX(Tabela1; (Tabela1[Average]>CALCULATE([MEDIAN];ALLEXCEPT(Tabela1;Tabela1[Category];Tabela1[Subcategory])))*1)
 
Upvote 0
Sorry, VARS are not in Excel2013 Either

in this case Above MEDIAN:=SUMX(Tabela1; (Tabela1[Average]>CALCULATE([MEDIAN];ALLEXCEPT(Tabela1;Tabela1[Category];Tabela1[Subcategory])))*1)

ralliartur, works fine for me!

Thank you a lot for your support.

When writing in Excel we can use F9 to evaluate step-by-step calculations. Thats different in this case. Why did you use *1 at the end of phrase?? Convert the TRUE/FALSE matrix in 1/0??
 
Upvote 0

Forum statistics

Threads
1,214,574
Messages
6,120,327
Members
448,956
Latest member
Adamsxl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top