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.
Hi
I am trying to add an additional Average per month column to a new table as shown in the spreadsheet below. So each month shows monthly sales, then a total per year column and then an average per month column - how can I add that average column?
Thanks for your help.
Solved! Go to Solution.
Hi @carlwright1234 ,
Check the formula.
Column =
'Table'[2020 total]
/ CALCULATE (
COUNTROWS (
FILTER (
UNION (
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Jan] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Feb] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Mar] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Apr] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-May] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Jun] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Jul] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Aug] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Sep] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Oct] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Nov] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Dec] )
),
[value] <> BLANK ()
)
)
)
Result would be shown as below.
Best Regards,
Jay
Hi @carlwright1234 ,
Check the formula.
Column =
'Table'[2020 total]
/ CALCULATE (
COUNTROWS (
FILTER (
UNION (
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Jan] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Feb] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Mar] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Apr] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-May] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Jun] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Jul] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Aug] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Sep] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Oct] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Nov] ),
SELECTCOLUMNS ( 'Table', "value", 'Table'[20-Dec] )
),
[value] <> BLANK ()
)
)
)
Result would be shown as below.
Best Regards,
Jay
@carlwright1234 , You can not add average at the end.
But for Hybrid display with Matrix Column and measure try
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...
and vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc
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 |
---|---|
96 | |
92 | |
82 | |
70 | |
64 |
User | Count |
---|---|
115 | |
106 | |
96 | |
81 | |
72 |