Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi.
I have this Table
The messures are:
Consumo HHogar Unificado = ([Consumo Total]/ COUNTROWS(Anexar1))/0.4013888
Why in Total does sum the values for "Total consumption" and average for "Consumo hogar unificado"? I would like to be added in both cases.
The other question is: how to make a measurement that sums the "Consumo hogar unificado" data for each "Subestación".
I would like to have a card with this measurement.
Thanks in advance.
Solved! Go to Solution.
I use this formula:
SUMX ( VALUES ( Table1[ColABC] ), [AvgMeasure] )
Works fine!
I use this formula:
SUMX ( VALUES ( Table1[ColABC] ), [AvgMeasure] )
Works fine!
Glad it worked!
I see that you are trying to do is Sum of Averages. You can do as below:
AVG_SITE = SUMX(
SUMMARIZE('Table', 'Table'[name], "L1Value", AVERAGE('Table'[ValueColumn])),
[L1Value])
Change your average column measure and see if it works;
Replace with your names, as I dont know your language, providing here so that you can change it
Consumo HHogar Unificado = SUMX(
SUMMARIZE('YourTableName'
, 'YourTableName'[Subestación]
, "L1Value", ([Consumo Total]/ COUNTROWS(Anexar1))/0.4013888),
[L1Value])
Hope this helps!
Thanks for the answer, let me check.