Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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"))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
84 | |
49 | |
38 | |
28 |
User | Count |
---|---|
188 | |
76 | |
73 | |
54 | |
42 |