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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
abhishek_2593
Helper I
Helper I

Distinct count of two values

Hi,

 

What is the measure to calculate the distinct count of the products that are listed in two or 3 websites?

For single website: i am currently using the measure 

Products in Website Amazon= CALCULATE(DISTINCTCOUNT('Table'[Product]),'Table'[Website] = "Amazon")
 
But i am unable to write a measure for multiple values.
i.e., Products in Website Amazon+Others = ??(how do i add two conditions in measure.
abhishek_2593_0-1656583351070.png

 

Please help

 

1 REPLY 1
amitchandak
Super User
Super User

@abhishek_2593 , refer if these can help

 

Measure , count of product having 3 websites

Countx(Filter(Summarize(Table, [Product], "_1", distinctcount(Table[Websites])),[_1] =3), [Product])

 

two wen site

 

Countx(Filter(Summarize(Table, [Product], "_1", distinctcount(Table[Websites])),[_1] =2), [Product])

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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