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,
could someone support with a measure that i would like to create.
Have the column KPI: VSU 6 Weeks where i have blank rows, rows with value 0 & 1.
how to count rows with value = 1?
The measure created gives me an error
Solved! Go to Solution.
@jalaomar , if KPI: VSU 6 Weeks is column then your formula or below measure should work
countrows(filter('KPI', 'KPI'[KPI: VSU 6 Weeks] =1 && not(isblank('KPI'[KPI: VSU 6 Weeks]))))
If this a measure
then you need some unique combination to filter like
countrows(filter(summarize(Table, Table[Cluseter], [Applicant], [Project Id], "_1", [KPI: VSU 6 Weeks] ), [_1] =1 ) )
@jalaomar , if KPI: VSU 6 Weeks is column then your formula or below measure should work
countrows(filter('KPI', 'KPI'[KPI: VSU 6 Weeks] =1 && not(isblank('KPI'[KPI: VSU 6 Weeks]))))
If this a measure
then you need some unique combination to filter like
countrows(filter(summarize(Table, Table[Cluseter], [Applicant], [Project Id], "_1", [KPI: VSU 6 Weeks] ), [_1] =1 ) )
Yes, it is a measure and the suggestion worked 🙂
Many thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 74 | |
| 66 | |
| 65 |