This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hello,
Average by Region is correct, but the average of the average shown is wrong. Someone please help, been trying for days now.
Solved! Go to Solution.
hi All,
Sorry for the delay, what i did was calculated individual average, earlier i had used the figures which had already averaged and so the system was taking the total of the averages. what i did was created new calculated columns and then selected it in the report and it worked fine.
example: Elec/TEU= sum(ENG2011[Elec])/sum(ENG2011[Throughput])*1000
thanks for all the help.
regards
SK
Try this MEASURE
Average Measure =
IF (
HASONEVALUE ( Table[Region] ),
DIVIDE (
SUM ( Table[Total Amount] ),
CALCULATE ( COUNTROWS ( Table ), ALLEXCEPT ( Table, Table[Region] ) ),
0
),
DIVIDE ( SUM ( Table[Total Amount] ), DISTINCTCOUNT ( Table[Region] ), 0 )
)Good Luck! ![]()
If this doesn't work - you have to tell us how your data is organized?
Is each row per Region a single repair?
That's what the above is calculating - sum total amount per region and divide by number of repairs (assuming 1 per row)
then in the total row it will sum overall total amount and divide by distinct number of regions (which is what I assumed you want)
hi All,
Sorry for the delay, what i did was calculated individual average, earlier i had used the figures which had already averaged and so the system was taking the total of the averages. what i did was created new calculated columns and then selected it in the report and it worked fine.
example: Elec/TEU= sum(ENG2011[Elec])/sum(ENG2011[Throughput])*1000
thanks for all the help.
regards
SK
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 44 | |
| 36 | |
| 23 | |
| 20 | |
| 20 |