Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |