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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sorayausher
New Member

Divide two distinct count values returning 1

Hi,

 

I am having an issue when I try to create a measure to divide 2 distinct count values. The measure appears to be working in the totals, but when trying to break it down into further categories, the only value I get is 1.

 

The measure I am using is:

 

DIVIDE(CALCULATE(DISTINCTCOUNT('All data_IT'[Data 1.Clnt_Id]),FILTER('All data_IT','All data_IT'[Data 1.Group_tax_outcome]<>"incurred accounting loss")),
DISTINCTCOUNT('All data_IT'[Data 1.Clnt_Id])
 
And these are my results
sorayausher_0-1720131519756.png

 

How do I make the values display the correct decimals?

 

Is there an issue with my DAX?

 

Thanks

 

 
 
 

 

 

4 REPLIES 4
aduguid
Super User
Super User

What is the data type of the measure? If it's set to "Whole Number", that could be your problem.

Make sure it's set to "Decimal Number".

aduguid_0-1720134194769.png

 

Thank you, but the data type of the measure is already set to decimal number.

Try this measure

 

Measure = 
	DIVIDE(
		  CALCULATE(DISTINCTCOUNT('All data_IT'[Data 1.Clnt_Id]), 'All data_IT'[Data 1.Group_tax_outcome] <> "incurred accounting loss")
		, DISTINCTCOUNT('All data_IT'[Data 1.Clnt_Id]
	)

 

 

Whilst I am not getting 1  values when I use that measure, the filter doesn't appear to be working, as there are values in the category I attempted to filter out.

sorayausher_0-1720136022117.png

 

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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