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
Chandrashekar
Resolver III
Resolver III

Wrong Table Total

Hello,

 

am getting wrong total(am getting 5815 instead of 6584) .

Chandrashekar_0-1673866795237.png

 

I am using below measure for calcuation.

 

Measure1
EIP = CALCULATE(COUNT('MS'[u_number]),USERELATIONSHIP('MS'[DateOpened_Measure], 'Calendar'[Date]))

Measure2
EP_Pr = CALCULATE([EIP],'MS'[Flag_Service]=1,'MS'[+Include_Eng]="Yes",'MS'[task.u_major]=Blank())

Measure3
EP_DC_CI = CALCULATE(DISTINCTCOUNT('MS'[New_Col_CI]))

Measure4
U_CI_EP_Pr = CALCULATE([EP_DC_CI], filter('MS',CALCULATE([EP_Pr])))+0

 

Regards,

Chandrashekar B

8 REPLIES 8
v-tangjie-msft
Community Support
Community Support

Hi @Chandrashekar ,

 

Please try creating the following measure instead of [Measure] as shown in your image:

_Measure =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[RowName],
        'Table'[ColumnName],
        "total", [Measure] //your measure   
    ),
    [total]
)

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

Hello,

I tried below Measure but am not getting result. Sorry could not able to share sample as it is huge data. 

Measure1 = sumx(
SUMMARIZE('MS',
'MS'[+Pro_New1],
'MS'[New_Col_CI],
"Total",[UniCI_EPP]
),
[Total])

Hi @Chandrashekar ,

 

You can refer to the following documents that may be helpful to you:

sum error - Microsoft Power BI Community

Dealing with Measure Totals - Microsoft Power BI Community

Fixing Incorrect Totals Using DAX Measures In Power BI | Enterprise DNA

How to Make Measures Total Correctly in Power BI Tables - ArcherPoint

 

Best Regards,

Neeko Tang

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

Hello,

 

Can you let me know how to add sumx for below measure. I used separate measure for Sumx and got the expected result.  Is it possible to add sumx for below measure to avoid new measure for sumx .

UniqueCI_EnteredPeriod_Process =
    CALCULATE([EnterPeriod_DC_CI],
                        filter('MNS Workload',CALCULATE([EnteredPeriod_Process])))
   
 Regards,
Chandrashekar B

Hello,

 

Thanks. I will check and let you share result.

FreemanZ
Super User
Super User

hi @Chandrashekar 

this happens because one item could present at different categories and is thus counted 1 in each category. But at the total row, it is counted only 1. 

Hello,

 

How to fix this issue to get exact count.

 

Regards,

Chandrashekar B

m-kats
Frequent Visitor

Hello @Chandrashekar ,

 

which of the above measures are you using in the table?

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.