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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have a table, which contains column name IDNR and other columns, I want to count IDNR based on column TYPE, where TYPE= ABC.
Solved! Go to Solution.
@Anonymous
Measure 2 = CALCULATE(DISTINCTCOUNT('Table'[IDNR]),'Table'[Type]="ABC")
do you want to count number of rows where type= "ABC"?
@Anonymous
I think you mean the TYPE column contains A, B, C.
Result = CALCULATE(DISTINCTCOUNT('Table'[IDNR]),ALLEXCEPT('Table',Table[TYPE]))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
Measure 2 = CALCULATE(DISTINCTCOUNT('Table'[IDNR]),'Table'[Type]="ABC")
do you want to count number of rows where type= "ABC"?
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 107 | |
| 39 | |
| 33 | |
| 25 |