Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
How do I perform a countif using measurement?
I have a measurement created to categorize Strength, Weakness, Average.
Solved! Go to Solution.
@ngiam , sorry my mistake
Strength =
countrows(filter(Sheet,Sheet[Strength] = "Strength"))
Weakness=
countrows(filter(Sheet,Sheet[Strength] = "Weakness"))
Average=
countrows(filter(Sheet,Sheet[Strength] = "Average"))
Hi @amitchandak ,
Thank you for your reply.
I encoutered the following issue :
Too few arguments were passed to the FILTER function. The minimum argument count for the function is 2.
Just manage to upload my file here :
https://drive.google.com/drive/folders/12F-Kgb_vvUm13qEdCqOAA_8MJT2IQg2O?usp=sharing
@ngiam , sorry my mistake
Strength =
countrows(filter(Sheet,Sheet[Strength] = "Strength"))
Weakness=
countrows(filter(Sheet,Sheet[Strength] = "Weakness"))
Average=
countrows(filter(Sheet,Sheet[Strength] = "Average"))
Thank you! This works!
@ngiam , if above is a calculated column, then you can create measure like
Strength =
countrows(filter(Sheet[Strength] = "Strength"))
Weakness=
countrows(filter(Sheet[Strength] = "Weakness"))
Average=
countrows(filter(Sheet[Strength] = "Average"))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |