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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Total Column Sum of measure

Hello All,

Does anyone know how to change the below formula to get the total column to total properly? That is to sum Nov + Dec?
I finally got the column to total (Nov and Dec) however now the total column does not total. 

 

Here is the formula I used: 

Forecast =
VAR ForecastTable=
    ADDCOLUMNS(
        SUMMARIZE(
                Data,
                Data[Partner & Payment Type]
                ),
        "Rate", [Forecast - Rate],
        "Population", [Headcount Total],
        "FFS", [Forecast - FFS Sum]
    )
RETURN
    SUMX(ForecastTable,
    ([Rate] * [Population]) + [FFS]
    )

Kryssy_0-1673926959432.png

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
Please try

Forecast =
VAR ForecastTable =
    ADDCOLUMNS (
        SUMMARIZE ( Data, Data[Partner & Payment Type], 'Date'[Month] ),
        "Rate", [Forecast - Rate],
        "Population", [Headcount Total],
        "FFS", [Forecast - FFS Sum]
    )
RETURN
    SUMX ( ForecastTable, ( [Rate] * [Population] ) + [FFS] )

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @Anonymous 
Please try

Forecast =
VAR ForecastTable =
    ADDCOLUMNS (
        SUMMARIZE ( Data, Data[Partner & Payment Type], 'Date'[Month] ),
        "Rate", [Forecast - Rate],
        "Population", [Headcount Total],
        "FFS", [Forecast - FFS Sum]
    )
RETURN
    SUMX ( ForecastTable, ( [Rate] * [Population] ) + [FFS] )
Anonymous
Not applicable

Thanks Again!!!!!!

SamInogic
Super User
Super User

Hi @Anonymous ,


Can you share sample pbix after removing sensitive data, so that we can check the Total, Nov and Dec column structure in your report?

Thanks!

Inogic Professional Service Division

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Drop an email at crm@inogic.com
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.