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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
coolasia
New Member

Powerpivot distinctcount return wrong values

Dear All

 

I am new to powerpivot and trying to convert my excel file worksheet into powerpivot because my data is

getting huge and hard to managed.

 

I need to calculate unique value in a column of my excel. Therefore I use the function in powerpivot below

 

Unique ID:=Distinctcount(Total[ID])

 

It give me a result of Unique ID =4328 (Wrong )

 

Unfortunately this result is wrong.

 

The correct result is 4348 but i cannot get this correct result.

 

My data contain text, numer, -, . ...etc

 

Can someone advise how i can solved this problem ?

 

Thanks

 

regards

Ken 

 

 

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@coolasia,

 

Check if you've refreshed the data model.

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

Hi 

Thanks for your reply..I have refresh but still same problem

I suspect my problem with powerpivot is due to my data in the excel file.

My excel file consist of data  with number and text. I notice that there is no

problem for my data if it is TEXT, mixture of text & number or number that within 8 digit

  1.  BYTRUCK9010527936  (no problem)
  2. 25308407 (no problem)

But when number become too long like below

  1. 43430660612014 , it will store the data in excel as “4.34307E+13”
  2. 43430660701011, it will store the data in excel as “”4.34307E+13”

When Powerpivot extract the data, it will store it as “4.34307E+13” and count as 1 instead of 2.

 

Any advise how to solve this kind of problem ?

 

regards

Ken

@coolasia,

 

Try to check the steps in the Advanced Editor.

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

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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