Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Good morning,
I have the following table:
USER | YEAR | REGION | RISK | VALUE
A | 2019 | EUROPE | A | 2
B | 2019 | EUROPE | A | 3
C | 2019 | EUROPE | A | 4
A | 2019 | CHINA | A | 1
B | 2019 | CHINA | A | 3
C | 2019 | CHINA | A | 2
A | 2019 | EUROPE | B | 5
B | 2019 | EUROPE | B | 1
C | 2019 | EUROPE | B | 2
A | 2019 | CHINA | B | 3
B | 2019 | CHINA | B | 4
C | 2019 | CHINA | B | 1
And I would like to get the average of the values by Year, Region and Risk in a calculated table. The result should be:
YEAR | REGION | RISK | AVERAGE
2019 | EUROPE | A | 3
2019 | EUROPE | B | 2,66
2019 | CHINA | A | 2
2019 | CHINA | B | 2,66
Thank you so much!!
Solved! Go to Solution.
Probably best to do this in PQ. If you want it in DAX:
NewTable =
ADDCOLUMNS (
SUMMARIZE ( Table1, Table1[YEAR], Table1[REGION], Table1[RISK] ),
"@Average", CALCULATE ( AVERAGE ( Table1[Value] ) )
)
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
https://www.dropbox.com/s/w38enf8sb5ysogt/mizaskun.pbix?dl=0
Hi @mizaskun
1. Place YEAR, REGION and RISK in a table visual. Make sure theya re all set to "Don't summarize"
2. Place Value in the viusla and select average. Alternatively, you can create an explicit measure and add it to the table visual:
Average_M =
AVERAGE (Table1[Value])
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Good morning,
But I need to create a new table, not in a measure. That is the point.
Thank you!
Probably best to do this in PQ. If you want it in DAX:
NewTable =
ADDCOLUMNS (
SUMMARIZE ( Table1, Table1[YEAR], Table1[REGION], Table1[RISK] ),
"@Average", CALCULATE ( AVERAGE ( Table1[Value] ) )
)
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |