The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I am trying to write a formula for a new column or measure that counts rows in a table but with conditions:
e.g. to count rows in TABLE1 where TABLE1[column1]='Red'.
what is the best way to do this please? Tried the countrows and countx function but no success
Solved! Go to Solution.
HI @nnn123
Try
Measure = CALCULATE ( COUNTROWS ( Table1 ), Table1[Column1] = "Red" )
HI @nnn123
Try
Measure = CALCULATE ( COUNTROWS ( Table1 ), Table1[Column1] = "Red" )
That's great thank you Zubair!
User | Count |
---|---|
62 | |
59 | |
54 | |
51 | |
33 |
User | Count |
---|---|
179 | |
87 | |
70 | |
48 | |
45 |