Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I'm trying to count the amount of times a client login with the same user
and then count the total client that had only one user in three months
client id | login date | user |
1 | 17/11/22 | A |
1 | 16/11/22 | B |
1 | 15/11/22 | A |
2 | 17/11/22 | C |
2 | 16/11/22 | j |
3 | 07/10/22 | Z |
i tried to use sumarize but it didnt work
pls help 🙂
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, or how your desired outcome of the visualizations look like, but please try something like below and the attached pbix file.
Expected result measure: =
COUNTROWS (
FILTER (
ADDCOLUMNS (
DISTINCT ( Data[client id] ),
"@countusers", CALCULATE ( COUNTROWS ( DISTINCT ( Data[user] ) ) )
),
[@countusers] = 1
)
)
Hi,
I am not sure how your datamodel looks like, or how your desired outcome of the visualizations look like, but please try something like below and the attached pbix file.
Expected result measure: =
COUNTROWS (
FILTER (
ADDCOLUMNS (
DISTINCT ( Data[client id] ),
"@countusers", CALCULATE ( COUNTROWS ( DISTINCT ( Data[user] ) ) )
),
[@countusers] = 1
)
)
Thanks that works!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
4 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |