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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
GayatriB100
Frequent 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
Anonymous
Not applicable

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

@Anonymous  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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors