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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
johndolan2
Resolver I
Resolver I

Sum 2 Distinct Count Measures

Hi - I am trying to sum 2 distinct count measures. Any help would be greatly appreciated.

 

The 1st measure is a distinct count of "service IDs". 

The 2nd measure is a distinct count of "street addresses".

I am recieving an invalid parameter error on the below:

TotaDistinctServiceIDandStreetAddress =  CALCULATE(SUM([distinct count ServiceIDs], [DistinctCountStAddrss]))

 

Thanks,

 

John

2 REPLIES 2
Anonymous
Not applicable

You can simply use this Measure
Measure =
VAR service_IDs =
DISTINCTCOUNT ( financials[Country] )
VAR street_addresses =
DISTINCTCOUNT ( financials[Product] )
RETURN
service_IDs + street_addresses

wdx223_Daniel
Super User
Super User

[distinct count ServiceIDs]+[distinct count ServiceIDs]

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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