cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jacosmit Frequent Visitor
Frequent Visitor

Filter in DISTINCTCOUNT question

New to the forum.

Snippet of db below.

 

Using Powerbi I would like to figure out how many staff ate at the restaurant. But I only want them to be counted if they ate at the restaurant more than 5 times during the month. (There are 100's of staff member so DISTINCTCOUNT would need to be part of the measure) 

 

Any help appreciated

 

User_IDMealMonth
Joe SoapMain 1October
Joe SoapMain 1October
Joe SoapMain 1October
Joe SoapMain 4October
Joe SoapMain 5October
Cathy BlackMain 1October
Cathy BlackMain 1October
Cathy BlackMain 2October
Cathy BlackMain 3October
Cathy BlackMain 4October
Stewart LittleMain 5October
1 ACCEPTED SOLUTION

Accepted Solutions
themistoklis New Contributor
New Contributor

Re: Filter in DISTINCTCOUNT question

@jacosmit

 

Create a new measure using the following formula

 

Measure = DISTINCTCOUNT(Table[Meal])

Then create a table and add UserID, Month as Dimensions and the measure.

 

See workspace on this link

 

Also you can use the filter pane to filter those who ate more than 5 times

 

image.png

1 REPLY 1
themistoklis New Contributor
New Contributor

Re: Filter in DISTINCTCOUNT question

@jacosmit

 

Create a new measure using the following formula

 

Measure = DISTINCTCOUNT(Table[Meal])

Then create a table and add UserID, Month as Dimensions and the measure.

 

See workspace on this link

 

Also you can use the filter pane to filter those who ate more than 5 times

 

image.png

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 220 members 2,229 guests
Please welcome our newest community members: