Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have data of this data of thre column and I want output as Avg by Column. How to achive it?
The main problem is all three columns are from different tables but I have joined them.
Country | state | population | Avg by Country |
India | punjab | 2000 | 4750 |
India | haryana | 4000 | 4750 |
India | Himachal | 6000 | 4750 |
India | UP | 7000 | 4750 |
canada | toronto | 10000 | 15000 |
canada | Columbia | 20000 | 15000 |
Solved! Go to Solution.
Create a measure:
Avg by Country =
CALCULATE (
AVERAGE ( 'Table'[population] ),
ALLEXCEPT ( 'Table', 'Table'[Country] )
)
Hope this helps
David
Create a measure:
Avg by Country =
CALCULATE (
AVERAGE ( 'Table'[population] ),
ALLEXCEPT ( 'Table', 'Table'[Country] )
)
Hope this helps
David
Hi @dedelman_clng. Thanks for your response. Will this work even if I am using all coumns from different tables (joins)?
As @az38 said, yes, if the model is correct. Can you share a screen shot of your model showing the tables and their relationships?
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |