Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
| Values |
| Apple |
| Apple |
| Apple |
| Orange |
| Orange |
| Orange |
| Grapes |
| Grapes |
| Grapes |
| Grapes |
| Bnana |
| Pear |
| Pear |
| Pear |
| Pear |
| Kiwi |
| Kiwi |
| Kiwi |
| Kiwi |
Result I wanted via measure is: How many Times Values is repeated
Please see the image below for refrence:
Hi @Anonymous
Please see the below.
Measure =
VAR _duplicates = CALCULATE(
COUNTROWS( Fruits ),
ALL( Fruits ),
VALUES( Fruits[Fruit] )
)
RETURN IF( _duplicates > 1, _duplicates )
Hi @Anonymous
If you working with direct query you need to use composite models:
1. use aggregated tables to create a table with apples, bananas etc. and count on them.
2. add segmentation tables with 0 Times, 3 Time etc and create a measure to calculate.
3. add table calculated from Direct query table but don't know if this can be done.
calculated column 1
Occurrences=
VAR thisValue=Table[Value]
RETURN
COUNTROWS(Filter(Table;Table[Values]=thisValue
Calculated column 2
Occurrences of This Value=
VAR thisOcc=Table[Occurrences]
RETURN
DISTINCTCOUNT(SELECTCOLUMNS(Filter(Table;Table[Occurrences]=thisOcc);Value))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 46 | |
| 42 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |