Forum Discussion
DAX function to count values in column
Hi all,
I have a column that contains various rows of different text, some of the rows say "Overdue" some say "Not due" some are blank.
How do I create a DAX formula to count all the Overdue rows?
Sorry totally new to this.
TIA Emily.
Count = CALCULATE(Countrows(Table),Table[Column]="Overdue")
Hi EmilyM2019 ,
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
5 Replies
- Nathaniel_CCommunity Champion
Count = CALCULATE(Countrows(Table),Table[Column]="Overdue")
Hi EmilyM2019 ,
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel- EmilyM2019Helper II
Awesome, thanks so much.
- AnonymousNot applicable
What about to count "overdue" and "not due" both?
- Nathaniel_CCommunity Champion
Hi Anonymous ,
Please try this:
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
NathanielCount = CALCULATE(Countrows(overdue),overdue[Column1]="Overdue" || overdue[Column1]= "Not overdue")
- walsamohtRegular Visitor
I am a new user of Power Bi and you are a star to solve my issue of not having countif in Power BI.