cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

## How to group row values for distinct count

Data table includes columns for email addresses, name of email sent and column that identifies whether it was opened or not (True\False valuse) I want to create a chart that shows; count of distinct email addresses that did not open any of the email names sent to their email address.

Example below distinct count would be 0 since email address opened at least 1 email.

 Email address email name opened xyz.com Apples False xyz.com Bannanas False xyz.com Oranges True

2nd example below, distinct count to be 1 since email address did not open any emails.

 Email address email name Opened abc.com Apples False abc.com Bannanas False abc.com Oragnes False

2 ACCEPTED SOLUTIONS
Super User

Hi @Wmickle

You talk about a chart but mention only one dimension you want to show? Place this measure in a card visual:

``````Measure =
COUNTROWS (
FILTER (
CALCULATE ( SUMX ( Table1, Table1[Opened] * 1 ) ) = 0
)
)``````

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers

Community Support

Hi @Wmickle ,

Based on your description, you can create a measure like this:

``````Distinct =
IF (
COUNTX (
FILTER (
ALL ( 'Table' ),
IN DISTINCT ( 'Table'[Email address] )
&& 'Table'[opened] = TRUE ()
),
) >= 1,
0,
CALCULATE (
FILTER (
ALL ( 'Table' ),
)
)
)
``````

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

3 REPLIES 3
Community Support

Hi @Wmickle ,

Based on your description, you can create a measure like this:

``````Distinct =
IF (
COUNTX (
FILTER (
ALL ( 'Table' ),
IN DISTINCT ( 'Table'[Email address] )
&& 'Table'[opened] = TRUE ()
),
) >= 1,
0,
CALCULATE (
FILTER (
ALL ( 'Table' ),
)
)
)
``````

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

Frequent Visitor

Thank you for your help. I appreciate you.

Super User

Hi @Wmickle

You talk about a chart but mention only one dimension you want to show? Place this measure in a card visual:

``````Measure =
COUNTROWS (
FILTER (
CALCULATE ( SUMX ( Table1, Table1[Opened] * 1 ) ) = 0
)
)``````

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers

Announcements

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

#### Power BI Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

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

Top Solution Authors
Top Kudoed Authors