cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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/

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors