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
Hi !
My data link:-https://www.dropbox.com/s/qww6kbl4ytb70aw/Count%20rows.pbix?dl=0
I want to count rows on the basis of a measure made out of if condition.
My condition will return L, C, E and need to count them that how many country falls under each.
I used this measure to count rows:-
Thanks in advance !
Solved! Go to Solution.
Hi,
Try this measure
COUNTROWS(FILTER(SUMMARIZE(GENERATE(VALUES(MSR[ctry_nm]),VALUES(MSR[brnd_nm])),MSR[ctry_nm],MSR[brnd_nm],"ABCD",[LCE Brand View]),[ABCD]="L"))
Hi,
Try this measure
Measure = COUNTROWS(FILTER(SUMMARIZE(MSR,MSR[brnd_nm],MSR[ctry_nm],"ABCD",[LCE Brand View]),[ABCD]="E"))
Hi,
I have no idea why. As you can clearly see, in the file that you uploaded, my formula is giving the correct result.
Hi @Ashish_Mathur
Kindly check the dashboard for once.
https://www.dropbox.com/s/imw6h6mspnufty5/Count%20rows.pbix?dl=0
Numbers are showing blank or wrong !
Thanks in advance !
Hi,
Try this measure
COUNTROWS(FILTER(SUMMARIZE(GENERATE(VALUES(MSR[ctry_nm]),VALUES(MSR[brnd_nm])),MSR[ctry_nm],MSR[brnd_nm],"ABCD",[LCE Brand View]),[ABCD]="L"))
@souvik900766 , Try a measure like
E Count Brand View = COUNTROWS(FILTER(MSR,[LCE Brand View]="E"))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 29 | |
| 21 | |
| 12 | |
| 12 |