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
Invesco
Helper V
Helper V

Incorrect Totals when you have blanks in a column

Hi Experts

 

Cannot see m answer to teh following - i am getting incorrect totals in standard table when i have blanks in a column (see image)

Invesco_0-1666267266621.png

 

Measure

Number of People with Consent = CALCULATE(DISTINCTCOUNT(dev_con_consent_with_universe[crmf_hcp_id]))
 
 
1 ACCEPTED SOLUTION

Hi @Invesco ,

You can create another new measure as below and put this new measure to replace the original measure onto the visual...

New Measure =
SUMX (
    VALUES ( dev_con_consent_with_universe[current_attitudinal_segment_desc] ),
    [Number of People with Consent]
)

 

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

 

If the above one can't help you get the desired result, please provide some sample data in your table 'dev_con_consent_with_universe' (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. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

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

4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

Hi  @Invesco ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

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.
amitchandak
Super User
Super User

@Invesco , DISTINCTCOUNT will recalculated for grand total to it might not match

 

if you want sum of DISTINCTCOUNT

 

try like

Sumx(dev_con_consent_with_universe[current_attitudinal_segment_desc])  ,CALCULATE(DISTINCTCOUNT(dev_con_consent_with_universe[crmf_hcp_id])))

 

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

Hi Amit Tried youre idea.... still same result

Segment Consent # = SUMX(VALUES(dev_con_consent_with_universe[current_segment]),CALCULATE(DISTINCTCOUNT(dev_con_consent_with_universe[crmf_hcp_id])))

Hi @Invesco ,

You can create another new measure as below and put this new measure to replace the original measure onto the visual...

New Measure =
SUMX (
    VALUES ( dev_con_consent_with_universe[current_attitudinal_segment_desc] ),
    [Number of People with Consent]
)

 

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

 

If the above one can't help you get the desired result, please provide some sample data in your table 'dev_con_consent_with_universe' (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. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

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.

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.