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
Anonymous
Not applicable

Count distinct values of a column

In power: when i use distinctcount or distinctcountnoblank functions then im getting the distinct count is 7 but in spotfire its 5 count.... could you please help on this please asap

 

spotfire CALS:

// spt: UniqueCount([Dictionary_SBSCTR]) over ([REGN_NAME],[SUB_SECTR_NAME],[IN_P6M])
 
Power BI dax: tried with many types of dax ways but coudlnt get correct results.  could you please do the needful on this asap, @amitchandak , @VahidDM or anybody else can help on this.
_Dict_Count =
CALCULATE(DISTINCTCOUNT('Usage Tracking'[Dictionary_SBSCTR]),ALLEXCEPT('Usage Tracking','Usage Tracking'[REGN_NAME], 'Usage Tracking'[SUB_SECTR_NAME]))
 
SPOTFORE DATA:
thimmaraju_0-1639489273528.png

 

POWER BI DATA:

thimmaraju_1-1639489304659.png

 

 

 
 
1 ACCEPTED SOLUTION
Watsky
Solution Sage
Solution Sage

Hey @Anonymous ,

Do you have anything joined to the dataset? I'm showing 5 for the count on my end. Unless what you're saying is the total should be 7?

Watsky_0-1639493241248.png


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

View solution in original post

6 REPLIES 6
Watsky
Solution Sage
Solution Sage

Hey @Anonymous ,

Do you have anything joined to the dataset? I'm showing 5 for the count on my end. Unless what you're saying is the total should be 7?

Watsky_0-1639493241248.png


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

Anonymous
Not applicable

there is no joinig, only one table is present in power bi file

Anonymous
Not applicable

@Watsky I agreed with your results but in my power bi file its not showing it. In my power bi file its not coming correct count as you got it.

smpa01
Super User
Super User

@Anonymous  please provide sample data in table format here

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

I'm unable to attached the excel or csv file or pbix file here. im gettting below errors. could you please help me how to attach the files so that i would share with you

 

thimmaraju_0-1639546282106.png

 

 

 

thimmaraju_1-1639546292176.png

 

@Anonymous ,

 

Send the file to onedrive or google drive then post the link to it here.


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

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.