Hello everyone,
I feel like this one requires a lot of context. hopefully you won't be lost.
I’m currently working on a spreadhseet supposed to help me monitor power/energy consumption (with a 10min to 5min step delay). To monitor some statistics about the large amount of data this implies (see data spreadsheet), I would like to create pivot tables with their linked charts (see statistics spreadsheet). So far so good.
My problem is two-fold :
Note : I am French but am very comfortable with English. I remain humble in the ways of excel and am self-taught. Also, the data here are random numbers so nothing to analyse for the moment.
I would like to add a median or medianx measure for my daily consumption column (in the pivot table in the "Statistics" spreadsheet).
Expressions I've tried so far are:
=MEDIAN(FILTER(Plage;ISNUMBER(VALUE(Plage[Daily kWh]))= TRUE())) This one works if I adapt it and type it in a cell on my "Data" spreadsheet.
And the error is :
Cette formule est incomplète ou n’est pas valide : « La fonction MEDIAN accepte uniquement une référence de colonne comme argument numéro 1. ». which means. « This formula is incomplete or not valid. The MEDIAN function only accepts a column reference for reference 1 »
AND
=MEDIANX(FILTER(Plage;ISNUMBER(Plage[Daily kWh])= TRUE()); Plage[Daily kWh])
And the error is :
Cette formule est incomplète ou n’est pas valide : « Erreur de calcul dans la mesure 'Plage'[filtre mediane conso jour] : MEDIANX ne prend pas en charge les expressions de type chaîne/booléen/date. ». which means « This formula is incomplete or invalid. Calculus error in measure « Plage[filtre médiane conso jour]. MEDIANX doesn’t process string/bool/date expressions.
Here is the file on wetransfer : EXCEL DAX MEDIAN PB
Finally, here are a few links that were useful in building my formulae :
Pivot Table Median - Excel Tips - MrExcel Publishing
The surprising middle ground: finding the Median value in Power BI DAX | by Hila Galapo | Medium
MEDIANX, fonction (DAX) - DAX | Microsoft Learn
Thanks for helping or bringing any suggestion.
I feel like this one requires a lot of context. hopefully you won't be lost.
I’m currently working on a spreadhseet supposed to help me monitor power/energy consumption (with a 10min to 5min step delay). To monitor some statistics about the large amount of data this implies (see data spreadsheet), I would like to create pivot tables with their linked charts (see statistics spreadsheet). So far so good.
My problem is two-fold :
- Pivot tables don’t allow me to sum power consumption per day (or at least I don’t know how to do so), so i have to come up with a formula that sums every consumption in one day. And I need to make sure this new column only contains each sum once (hence the remaining cells being blanked out). For information purpose, I do that with an IF function that returns the sum when I reach the right cell I want, and «» (a blank text) if not.
- Secondly, I discovered one can add new measures to a pivot table which is wonderful, and I would definitely like to know the median (and other percentiles) of my new « daily consumption » column (see « daily »). But, I can’t seem to use the DAX median or medianx functions properly for this column. This is where I need help.
Note : I am French but am very comfortable with English. I remain humble in the ways of excel and am self-taught. Also, the data here are random numbers so nothing to analyse for the moment.
I would like to add a median or medianx measure for my daily consumption column (in the pivot table in the "Statistics" spreadsheet).
Expressions I've tried so far are:
=MEDIAN(FILTER(Plage;ISNUMBER(VALUE(Plage[Daily kWh]))= TRUE())) This one works if I adapt it and type it in a cell on my "Data" spreadsheet.
And the error is :
Cette formule est incomplète ou n’est pas valide : « La fonction MEDIAN accepte uniquement une référence de colonne comme argument numéro 1. ». which means. « This formula is incomplete or not valid. The MEDIAN function only accepts a column reference for reference 1 »
AND
=MEDIANX(FILTER(Plage;ISNUMBER(Plage[Daily kWh])= TRUE()); Plage[Daily kWh])
And the error is :
Cette formule est incomplète ou n’est pas valide : « Erreur de calcul dans la mesure 'Plage'[filtre mediane conso jour] : MEDIANX ne prend pas en charge les expressions de type chaîne/booléen/date. ». which means « This formula is incomplete or invalid. Calculus error in measure « Plage[filtre médiane conso jour]. MEDIANX doesn’t process string/bool/date expressions.
Here is the file on wetransfer : EXCEL DAX MEDIAN PB
Finally, here are a few links that were useful in building my formulae :
Pivot Table Median - Excel Tips - MrExcel Publishing
The surprising middle ground: finding the Median value in Power BI DAX | by Hila Galapo | Medium
MEDIANX, fonction (DAX) - DAX | Microsoft Learn
Thanks for helping or bringing any suggestion.