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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jithinrg
Helper I
Helper I

Grand total displays the right amount, but the export data total displays a different amount

hi

I have created a dashboard with the financial sample data. the cumulative total shows correct value in the matrix, but when we export the data and do the sum, the value is different.

Fig 1: Power BI matrix table (highlighted table)

jithinrg_0-1675575030147.png

 

Fig2: Export

 

jithinrg_1-1675575094791.png

 

DAX:

1.

Sales =
SUM( financials[ Sales] )
 2. 
Selected Period =
SELECTEDVALUE( financials[Period] )
3.
Sales for Selected Period =
CALCULATE(
    [Sales],
    FILTER(
        financials,
        financials[Period] = [Selected Period]
    )
)

 

4. 

Cumulative Sales =
VAR _Periodcheck =
    CALCULATE(
        MAX( financials[Period] ),
        ALL( financials[Period] )
    )
RETURN
CALCULATE(
    SUM( financials[ Sales] ),
    FILTER(
        all (financials[Period] ),
        financials[Period] <= MAX( financials[Period])
    )
)
 
Any help on this is greatly appreciated.
Note that this dashboard has RLS and page level security.
2 REPLIES 2
jithinrg
Helper I
Helper I

Yes @amitchandak The report users are complaining this, because they are confused with the totals. Some transactions are missing, but the grand total is correct. Not sure this might be due to those transactions are filtered by the period filter. Any solution for this?

amitchandak
Super User
Super User

@jithinrg , Are you doing a manual total in excel? Because power bi recalculate the totals to correct then grand total

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.