This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hey
Not long into my DAX understanding and i've hit a brickwall.
I need to create a measure that counts if a RANDOM_PERSON_ID is repeated 5 times.
So, my measure value with the test dataset should be 1 (9662AF155704B3F7).
Note that the table is on a Tabular Cube and does not have a uniqueidentifier and has about 46 million records.
Any help greatly appreciated.
Thanks
Danny
Solved! Go to Solution.
@danial_mcgreevy , Try this measure with RANDOM_PERSON_ID in a visual
countx(filter(summarize(table,table[RANDOM_PERSON_ID], "_1",count(*)), [_1]>=5),[RANDOM_PERSON_ID])
@danial_mcgreevy , Try this measure with RANDOM_PERSON_ID in a visual
countx(filter(summarize(table,table[RANDOM_PERSON_ID], "_1",count(*)), [_1]>=5),[RANDOM_PERSON_ID])
Huge thanks.
Slight amendment to handle strings but works a charm.
COUNTAX (
FILTER (
SUMMARIZE (
Table,
Table[RANDOM_PERSON_ID],
"EqualTo5", COUNTA ( Table[RANDOM_PERSON_ID] )
),
[EqualTo5] = 5
),
Table[RANDOM_PERSON_ID]
)
Kind regards
Dannt
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |