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.
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_ID | Meal | Month |
Joe Soap | Main 1 | October |
Joe Soap | Main 1 | October |
Joe Soap | Main 1 | October |
Joe Soap | Main 4 | October |
Joe Soap | Main 5 | October |
Cathy Black | Main 1 | October |
Cathy Black | Main 1 | October |
Cathy Black | Main 2 | October |
Cathy Black | Main 3 | October |
Cathy Black | Main 4 | October |
Stewart Little | Main 5 | October |
Solved! Go to Solution.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |