Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
HI,
I have a very simple question.
On this simple sheet as below, I counted # of ID of <50 score, using countif in excel,
as =COUNTIF(B2:B21, "<50")
How do I manage it in DAX?
Many thanks in advance.
| ID | Score |
| 520001 | 55 |
| 520002 | 36 |
| 520003 | 52 |
| 520004 | 52 |
| 520005 | 50 |
| 520006 | 50 |
| 520007 | 43 |
| 520008 | 43 |
| 520009 | 47 |
| 520010 | 43 |
| 520011 | 32 |
| 520012 | 43 |
| 520013 | 40 |
| 520014 | 59 |
| 520015 | 32 |
| 520016 | 43 |
| 520017 | 50 |
| 520018 | 47 |
| 520019 | 36 |
| 520020 | 28 |
Solved! Go to Solution.
Hi @Nobuko_ao
You can use this MEASURE
Measure = CALCULATE ( COUNTROWS ( Table1 ), Table1[Score] < 50 )
or this one
Measure 2 = COUNTROWS ( FILTER ( Table1, Table1[Score] < 50 ) )
or this one
Measure 3 = COUNTX ( FILTER ( Table1, Table1[Score] < 50 ), 1 )
Hi @Nobuko_ao
You can use this MEASURE
Measure = CALCULATE ( COUNTROWS ( Table1 ), Table1[Score] < 50 )
or this one
Measure 2 = COUNTROWS ( FILTER ( Table1, Table1[Score] < 50 ) )
or this one
Measure 3 = COUNTX ( FILTER ( Table1, Table1[Score] < 50 ), 1 )
Thank you !!
My problem has solved succesfully!!
best
Nobuko
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 68 | |
| 34 | |
| 33 | |
| 30 |