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"))
User | Count |
---|---|
85 | |
81 | |
64 | |
53 | |
46 |
User | Count |
---|---|
102 | |
49 | |
42 | |
39 | |
38 |