Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I currently have a table populated with values, 1,2,3.. etc.
I am counting repeat test users with the following;
Count =
CALCULATE(COUNTROWS('Table'),FILTER(ALLSELECTED('Table'),[UserID]=MAX('Table'[UserID]) && [TestDateTime]>=MIN('Table'[TestDateTime]) && [TestDateTime]<=MAX('Table'[TestDateTime])))
I am then grouping them into number of tests with;
Count(again based on meassure) =
var _t=SUMMARIZE('Table','Table'[UserID],"Count by UserID",[Count])
return COUNTROWS(FILTER(_t,[Count by UserID]=MAX('New Table'[Test])))+0
Can anyone think of a way to do this where I can group into 1 test, 2 tests, 3-5 tests etc.. ?
Many thanks
Solved! Go to Solution.
Hi, @brettg;
Try to enter a table.
Create a column
Test2 = [start]&"-"&[end]
then create a measure.
Count(again based on meassure2) =
var _t=SUMMARIZE('Table','Table'[UserID],"Count by UserID",[Count])
return COUNTROWS(FILTER(_t,[Count by UserID]<=MAX('Table (2)'[end])&&[Count by UserID]>=MAX('Table (2)'[start])))+0
The final output is shown below:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @brettg;
Try to enter a table.
Create a column
Test2 = [start]&"-"&[end]
then create a measure.
Count(again based on meassure2) =
var _t=SUMMARIZE('Table','Table'[UserID],"Count by UserID",[Count])
return COUNTROWS(FILTER(_t,[Count by UserID]<=MAX('Table (2)'[end])&&[Count by UserID]>=MAX('Table (2)'[start])))+0
The final output is shown below:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for taking a look! I have attached a link to access my sample file.
https://drive.google.com/drive/folders/1paF2gfnMvLDQJ5r-re0y0zMmuqLQlKvL?usp=sharing
Basically, instead of my value table being 1,2,3,4,5.. etc. I would like to group the number of tests; 1 test, 2-5 tests 6-10 tests etc
Many thanks,
Brett
Hi, @brettg ;
Could you please consdier sharing more details about it and posting expected result so it is clear on what needs to be implemented? And It would be great if there is a sample file without any sesentive information here.
It makes it easier to give you a solution.
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 20 | |
| 14 | |
| 13 | |
| 13 |
| User | Count |
|---|---|
| 62 | |
| 40 | |
| 38 | |
| 38 | |
| 38 |