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
nmeliasp
Regular Visitor

Calculate Number of rows with non blank dates

Hello I have a table similar to the table below. I am trying to create a measure that calculates the rows that have completions dates for the West Area. 

 

ItemAreaCompletion Date
XXWest5/21/2019
YYWest 
ZZSouth5/22/2019

 

I would like this measure to return 1 in this simple example

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@nmeliasp ,

 

Do you want to calculate the row number of West Area which has Completion Date? You can also create a measure and drag the measure to the card visual:

Result = COUNTX(FILTER(Table1, Table1[Completion Date] <> BLANK() && Table1[Area] = "West"), Table1[Item])

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@nmeliasp ,

 

Do you want to calculate the row number of West Area which has Completion Date? You can also create a measure and drag the measure to the card visual:

Result = COUNTX(FILTER(Table1, Table1[Completion Date] <> BLANK() && Table1[Area] = "West"), Table1[Item])

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

Drag Area to the Row labels and write this measure

=COUNT(Data[Completion Date])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.