Forum Discussion
Distinct count how many users failed repeatedly
Hello aidelapplicate,
I think i understand your issue and have created a powerbi report based on your example data set.
I got the following results while trying to create what you described:
I hope this is what you are looking to do.
I have created this using the following two measures:
failed count =
CALCULATE(
COUNT(Data[User]),
Data[sales] < 100
)repeater =
IF(
[failed count] > 1,
CALCULATE(
COUNT(Data[User]),
Data[sales] < 100
),
BLANK()
)
You can download my pbix file here: download pbix file
Hope this helps.
If this solved your problem, please give a thumbs up and mark this answer as your solution 🙂
Have a nice day!
- Anonymous3 years agoNot applicable
Thank you so much for your replies.
Forgot to mention, i actually wants to find the repeater in the following month. if the user failed more than once in the same month, that doesnt count as repeater. if the user failed in month 1 and month 2, means the user is a repeater in the month 2. hope this clarifies.
- o0llied3 years agoFrequent Visitor
I see, you can add a check to the repeater to look at the previous month like this:
repeater = IF( [failed count] > 1, CALCULATE( COUNT(Data[User]), DATEADD(Data[Date], -1, MONTH), Data[sales] < 100 ), BLANK() )Hope this helps!