Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
carlwright1234
New Member

Additional Average column

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.

 

carlwright1234_0-1602757824470.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

1.PNG

 

Best Regards,

Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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.

1.PNG

 

Best Regards,

Jay

amitchandak
Super User
Super User

@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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.