Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
omooba
Regular Visitor

DAX help on text only table

Hi all, I'm new to Power BI and still trying to navigate my way around the app.

 

I want to create a Dashboard to show the status of testing, i only have text and date in my table and when i drag the column to the report, all i see is data. I know i need to create a measure which will get me started to virtualize my data. 

 

Columns headers in my table - Defects No, App Name, App Description, Date, Status

 

First of all, i need to know how to get the total Number of defects? I have used the Sum function for "defects No" column but the number is wrong as this is just a number for each defects logged. 

 

How do i go about doing this? I appreciate the help. Thanks

2 ACCEPTED SOLUTIONS
Nathaniel_C
Super User
Super User

Hi @omooba ,

Try COUNTROWS(YourTableName). May I also suggest you get the book, Supercharge Power BI by @MattAllington  or something similar to get you started?


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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Hi @omooba ,

Here is an a blog about dealing with blanks that you might enjoy.blank in dax There is also count, counta, countax.

 

The COUNTX function takes two arguments. The first argument must always be a table, or any expression that returns a table. The second argument is the column or expression that is searched by COUNTX.

The COUNTX function counts only values, dates, or strings. If the function finds no rows to count, it returns a blank.

If you want to count logical values, use the COUNTAX function.



Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Nathaniel_C
Super User
Super User

Hi @omooba ,

Try COUNTROWS(YourTableName). May I also suggest you get the book, Supercharge Power BI by @MattAllington  or something similar to get you started?


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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks for your help, that did work but its worth pointing out that it will also count "null" rows. 

But it worked. appreciate. 

Hi @omooba ,

Here is an a blog about dealing with blanks that you might enjoy.blank in dax There is also count, counta, countax.

 

The COUNTX function takes two arguments. The first argument must always be a table, or any expression that returns a table. The second argument is the column or expression that is searched by COUNTX.

The COUNTX function counts only values, dates, or strings. If the function finds no rows to count, it returns a blank.

If you want to count logical values, use the COUNTAX function.



Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors