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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
NC_03
Regular Visitor

Column Total does not match

Hi, 

I need your help.  I have a Purchase Price Variance report where I needed to show in a table:

These items are sourced from the same source table 'me2l' with a date range of 1 Jan 2021 to present 21 July 2024

1.  Date Range - 1 Jan 2024 to 21 July 2024

1.  Material item - sourced from "me2l"

2.  Last year's average unit price - New Measure = Net Price per Unit LY = CALCULATE(AVERAGE('me2l'[Net Price per Unit]),DATEADD('DATE TAB'[Date],-1,YEAR); sourced from "me2l"

3.  This year's average unit price - New Measure = Net Price per Unit = [Net Price]/[Price unit], sourced from "me2l"

4.  This year's total ordered quantity - sourced from "me2l"

5.  Currency - sourced from "me2l"

6.  Exchange Rate - sourced from "me2l"

7.  PPV Total = difference between 2 & 3 x 4 x 6.  Unfortunately, the column total is incorrect when I download it in Excel and compare it.   See New Measure = PPV TOTAL = SUMX(values('me2l'[Material]),[PPV Unit Price 2])*round(average('me2l'[Exchange Rate]),4).  Where, another New Measure is created PPV Unit Price 2 = CALCULATE(AVERAGE([Net Price per Unit])-[Net Price per Unit LY])*sum('me2l'[Order Qty-adj])

See screenshot:

NC_03_0-1721705423828.png

Unfortunately, the column total in PPV TOTAL doesn't jibe or is incorrect when you download it in Excel and validate the total column.

 

May I seek your assistance please in solving it.  Much appreciated!

 

Noel Cacnio

Email: noel.cacnio@jgspetrochem.ph

1 ACCEPTED SOLUTION
NC_03
Regular Visitor

Hi all,

We were able to identify the issue.  Instead of averaging the Unit Price, we instead get the Average of PO value / Ordered Qty to arrive at the Average unit price.  We also used the Round (x).

Thank you to Yangliu for your inputs and suggestions.

View solution in original post

4 REPLIES 4
NC_03
Regular Visitor

Hi all,

We were able to identify the issue.  Instead of averaging the Unit Price, we instead get the Average of PO value / Ordered Qty to arrive at the Average unit price.  We also used the Round (x).

Thank you to Yangliu for your inputs and suggestions.

Anonymous
Not applicable

Hi  @NC_03 ,

 

Are you referring to the fact that PPV Total is different in power bi and excel after exporting data to excel?

You can check if there are any filters applied on the visual object, sometimes the data transformations or filters applied in Power BI may not be reflected in the exported data.

Due to rounding differences between Power BI and Excel, round() may cause differences, you can try to remove this function to see if the values are still different in power bi and excel

 

Check the official documentation below for the limitations related to export data:

Export data from a Power BI visualization - Power BI | Microsoft Learn

 

This is the related document, you can view this content:

Solved: Sum Column Total of exported data is different to ... - Microsoft Fabric Community

Solved: Wrong totals, different than export - Microsoft Fabric Community

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Noted and thanks for taking time responding to my inquiry.

NC_03
Regular Visitor

Hi all, 

I am validating the one in Power BI and the one extracted to Excel.  See sample item below:

NC_03_1-1721867575798.png

The one in Power BI report has no value in PPV since the Average Unit Rate in Current Year is the same as the Average Unit Rate in Last Year.  However, the one extracted to Excel somehow erroneously generated a difference of (36,119.29).

How is that possible?  Could it be that it has something to do with the PPV TOTAL measure? 

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.