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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
xozelda11
Helper I
Helper I

Not summing up total correctly for this column

When pivotal export = yes, it sums up the total correctly for this column, but when pivotal export = no, it does not sum of the total correctly.

xozelda11_1-1749228782989.pngxozelda11_2-1749228810185.pngxozelda11_3-1749228875655.pngxozelda11_4-1749228888731.png

 

This is my measure I created

Incremental EBITDA Contribution =
SUMX(
  'Dim Project Metrics',
 
  VAR VolVar   = [Sales Volume Variance]
  VAR IsExport = 'Dim Project Metrics'[Pivotal Export Check] = "Yes"
 
  VAR Rate =
    IF(
      IsExport,
      // Export-Prime (pinned to 2025) – unchanged
      CALCULATE(
        [EBITDA - Forecast (cpp)],
        FILTER(
          ALL( 'Dim Project Metrics' ),
          'Dim Project Metrics'[finance grouping] = "export-prime"
          && 'Dim Project Metrics'[market role]    = "pivotal"
        ),
        KEEPFILTERS( VALUES( 'Dim Asset'[Asset Name] ) ),
        KEEPFILTERS( VALUES( 'Dim Date'[Date].[Month] ) ),
        'Dim Date'[Year] = 2025
      ),
      // Domestic-Prime – simplified to a single grouping filter
      CALCULATE(
        [EBITDA - Forecast (cpp)],
        FILTER(
          'Dim Project Metrics',
          'Dim Project Metrics'[finance grouping] = "domestic-prime"
        )
      )
    )
 
  RETURN
    VolVar * Rate
)


can anyone help me fix the formula so that when pivotal export = no, it sums up the total correclty?
9 REPLIES 9
v-prasare
Community Support
Community Support

Hi @xozelda11,

I’m following up on our previous communication regarding your issue. To proceed with the investigation, we kindly requested a sample dataset that reproduces the problem. As of now, we haven’t received the required sample. Please share it at your earliest convenience so we can assist you further. 

 

If we don’t hear back, we’ll go ahead and close this thread. For any further discussions or questions, please start a new thread in the Microsoft Fabric Community Forum  we’ll be happy to assist.

 

Thank you for being part of the Microsoft Fabric Community.

v-shamiliv
Community Support
Community Support

Hi @xozelda11 
You can follow the process shown in the document below and upload a sample file.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Thank you.

v-shamiliv
Community Support
Community Support

Hi @xozelda11 
Thank you for reaching out microsoft fabric community forum.
As @Elena_Kalina mentioned could you please provide sample pbix file so that we might assist you more effiently.
Thank you.

How do you attach a sample power bi?

Elena_Kalina
Solution Supplier
Solution Supplier

Hi @xozelda11 

Thanks for sharing the screenshots! To better understand your issue and provide more accurate assistance, could you share a sample file (PBIX or PBIT) with dummy data that replicates the problem? This way, I can see the underlying structure, measures, or relationships causing the issue.

xozelda11
Helper I
Helper I

This doesn't work unfortunately! 

Elena_Kalina
Solution Supplier
Solution Supplier

Hi @xozelda11 

Please try this one:

Incremental EBITDA Contribution =
SUMX(
    'Dim Project Metrics',
    VAR VolVar = [Sales Volume Variance]
    VAR IsExport = 'Dim Project Metrics'[Pivotal Export Check] = "Yes"
    
    VAR Rate =
        IF(
            IsExport,
            // Export-Prime (pinned to 2025) – unchanged
            CALCULATE(
                [EBITDA - Forecast (cpp)],
                FILTER(
                    ALL('Dim Project Metrics'),
                    'Dim Project Metrics'[finance grouping] = "export-prime"
                    && 'Dim Project Metrics'[market role] = "pivotal"
                ),
                KEEPFILTERS(VALUES('Dim Asset'[Asset Name])),
                KEEPFILTERS(VALUES('Dim Date'[Date].[Month])),
                'Dim Date'[Year] = 2025
            ),
            // Domestic-Prime - corrected to maintain proper context
            CALCULATE(
                [EBITDA - Forecast (cpp)],
                FILTER(
                    ALL('Dim Project Metrics'),
                    'Dim Project Metrics'[finance grouping] = "domestic-prime"
                ),
                KEEPFILTERS(VALUES('Dim Asset'[Asset Name])),
                KEEPFILTERS(VALUES('Dim Date'[Date].[Month]))
            )
        )
    
    RETURN
        VolVar * Rate
)

or this a more streamlined approach

Incremental EBITDA Contribution =
SUMX(
    'Dim Project Metrics',
    VAR VolVar = [Sales Volume Variance]
    VAR Rate = 
        CALCULATE(
            [EBITDA - Forecast (cpp)],
            FILTER(
                ALL('Dim Project Metrics'),
                'Dim Project Metrics'[finance grouping] = 
                    IF('Dim Project Metrics'[Pivotal Export Check] = "Yes", 
                       "export-prime", 
                       "domestic-prime")
                && ('Dim Project Metrics'[Pivotal Export Check] = "No" 
                    || 'Dim Project Metrics'[market role] = "pivotal")
            ),
            KEEPFILTERS(VALUES('Dim Asset'[Asset Name])),
            KEEPFILTERS(VALUES('Dim Date'[Date].[Month]))),
            IF('Dim Project Metrics'[Pivotal Export Check] = "Yes", 'Dim Date'[Year] = 2025, TRUE)
        )
    RETURN
        VolVar * Rate
)

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

Hi, 

 

Here's a OneDrive link to Sample Data.pbix.

 

Here is the link to my sample data please help!

Hi, when I tryed to open link I got error message that access to this document has been removed

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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