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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
GayatriB100
Regular Visitor

How to get Total of calculated measure in Power BI desktop

Can anyone let me know how we calculate the total of the measure 'New' shown in below table:

 

GayatriB100_0-1658322041872.png

In the above total is getting displayed for 2022 sales and 2021 sales but not for New (which is a calculated measure).I need to show the total also as underline rows would be having data .For ex not all rows will have a new value but some will have and i want to sum them all and show it at publication level.

 

GayatriB100_1-1658322248371.png

So here I want the total to display for New column at publication level as (£8505+239328+3686) however it shows nothing it's blank at Canada publication level.Please advice.

1 ACCEPTED SOLUTION

Hi @GayatriB100 ,

Please create another new measure as below and put this new measure onto the matrix visual to replace the original measure [New]. Later check if it can get your expected result.

New measure =
SUMX (
    GROUPBY (
        'Finance Sales',
        'Finance Sales'[Publication],
        'Finance Sales'[Allocated Sales Person]
    ),
    [New]
)

yingyinr_0-1658745829637.png

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

Best Regards

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

View solution in original post

6 REPLIES 6
willjoe
New Member

SUM is going to look at the 'Total Sales' column in the 'Sales' table and sum all the values together. Let's use a matrix visual to display the measure 'SUM' by 'ITEMNAME'. To do this, we add 'ITEMNAME' as the row value and 'SUM' as our values in Power BI. Here we can see that SUM does exactly what we expect it to do

 

 

Regards,

Will

@willjoe  I am already using the matrix visual and the 'New' measure is part of values and 'Publication' part of rows.It still doesn't work.

GayatriB100_0-1658397447916.png

 

Hi @GayatriB100 ,

Please create another new measure as below and put this new measure onto the matrix visual to replace the original measure [New]. Later check if it can get your expected result.

New measure =
SUMX (
    GROUPBY (
        'Finance Sales',
        'Finance Sales'[Publication],
        'Finance Sales'[Allocated Sales Person]
    ),
    [New]
)

yingyinr_0-1658745829637.png

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

Best Regards

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

Thank you @v-yiruan-msft for the help .It works.

amitchandak
Super User
Super User

@GayatriB100 , It would like

 

Calculate([2022 sales] , filter(Table[publication] in {"Ella Meads","EO", "JA"}))

 

Use the correct names

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks for replying so quickly.

When i use that calculation I am getting this below error:

New Sales at Guide = Calculate([2022 sales] , FILTER('Finance Sales','Finance Sales'[Allocated Sales Person]))

GayatriB100_0-1658323848827.png

Also I don't want it to hardcode as Table needs to display for each row.So here Publication column have values like Canada,USA,etc and the drill down is at Salesperson level.So I want to sum those salesperson sales and show it at Publication level.

GayatriB100_1-1658324100825.png

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.