Forum Discussion
mizaskun
Helper II
5 years agoSummarize by three columns
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 ...
- 5 years ago
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.
AlB
Community Champion
5 years agoHi 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. |
mizaskun
Helper II
5 years agoGood morning,
But I need to create a new table, not in a measure. That is the point.
Thank you!
- AlB5 years ago
Community Champion
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.