Forum Discussion
Average by ID
Hello All!
It seems like very easy but I'm having trouble with it. OBS: I'm getting the data by live concection( Importing dataset from power BI online)
The table I have
ID Value
1 5
2 2
1 3
2 6
What I want with the measure
ID Value measure
1 5 4
2 2 5
1 3 4
2 8 5
I tried to use quick measures but It didn't return me te right thing
Best Regards,
Diego
7 Replies
- parry2kSuper User
You need to add a measure to something like this
Measure = var m = FIRSTNONBLANK(Table1[id], "")
return CALCULATE(AVERAGE(Table1[value]), FILTER(ALLSELECTED(Table1),m =Table1[id])) - danextianSuper User
Hi sirros_iot,
Try this:
avg by id =
CALCULATE (
AVERAGEX ( ALL ( 'Table'[ID] ), AVERAGE ( 'Table'[Value] ) ),
ALLEXCEPT ( 'Table', 'Table'[ID] )
) - sirros_iotHelper III
- parry2kSuper User
sirros_iotif you put Id and this new measure in a table view, I expect the result to be correct. Could you share what result you are getting? Why it is not correct?