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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Paul_syn
New Member

Totals for specific column in a table

Is there a way to get the correct total of a column. I seem to be getting the wrong totals after exporting the visual to excel format.
I'd like some help if there's any sample forumula, the ones I saw doesn't seem to be up to date.

1 REPLY 1
123abc
Community Champion
Community Champion

Certainly! In Power BI, you can use the DAX (Data Analysis Expressions) language to create calculated columns or measures for various purposes, including calculating totals for specific columns. If you're experiencing issues with incorrect totals after exporting to Excel, it might be related to the way the calculations are set up in your Power BI model.

Here's a basic example of how you can create a measure to calculate the total for a specific column in Power BI:

Let's assume you have a table called "YourTable" and a column called "YourColumn" that you want to sum up.

  1. Create a Measure:

    In the Fields pane, right-click on the table, select "New Measure," and enter the following DAX formula:

 

Total = SUM(YourTable[YourColumn])

 

  1. Replace "YourTable" with the actual name of your table and "YourColumn" with the actual name of your column.

  2. Display the Measure in a Visual:

    Drag and drop the newly created measure ("Total") onto a visual (e.g., a card or a table) to display the total.

  3. Verify the Results:

    Check if the total displayed in Power BI matches your expectations. If it does, the issue might be related to the export to Excel.

  4. Export to Excel:

    When exporting to Excel, make sure you are exporting the data and not just a visual. Select the option to export the data, and then check the Excel file to see if the totals are correct.

If you are still facing issues with incorrect totals in Excel after exporting, it might be helpful to review the data in Power BI and check for any data transformations or filters that might affect the results.

If you have specific details about your table structure or any filters applied, feel free to provide more information, and I can offer more targeted assistance.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.