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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
u16815
New Member

Where is null

Hello, fairly new to Power BI and only  just started creating DAX measures!

I have created the measure below 

 

Open Incidents = CALCULATE(COUNT(tincidents[CreatedDate]))

 

But I need to add a where clause which is basically Where tincidents[ClosedDate] is null but cant work it out!

 

Thanks

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

Hi @u16815,

 

If you still have problems on it, please try this Measure.

 

Open Incidents =
CALCULATE (
    COUNT ( 'tincidents'[CreatedDate] ),
    FILTER ( 'tincidents', ISBLANK ( 'tincidents'[ClosedDate] ) )
)

 

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

View solution in original post

2 REPLIES 2
v-cazheng-msft
Community Support
Community Support

Hi @u16815,

 

If you still have problems on it, please try this Measure.

 

Open Incidents =
CALCULATE (
    COUNT ( 'tincidents'[CreatedDate] ),
    FILTER ( 'tincidents', ISBLANK ( 'tincidents'[ClosedDate] ) )
)

 

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

SpartaBI
Community Champion
Community Champion

@u16815 try this:

 

Open Incidents = 
	CALCULATE(
		COUNT(tincidents[CreatedDate])
		tincidents[ClosedDate] == BLANK()
		)

 




2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.