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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.