cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
deepak91g Advocate III
Advocate III

How to get Default Value instead of "Blank" in DAX Calculation

 

Reports NotSent Count = CALCULATE(COUNTA('Project Details'[Task Notes]),FILTER(ALL('Project Details'),'Project Details'[Task Notes]<>"No Issues"&&DATEVALUE('Project Details'[Task Completed At])=DATEVALUE(MAX('Project Details'[Task Completed At]))))

I am using following code to count number of reports not sent on a particular day.

 

Use case: If 0(Zero) reports not sent i.e. All reports are delivered then I should get 0(Zero) instead of "Blank"

 

Screenshot:  http://prntscr.com/he8vs6 

1 ACCEPTED SOLUTION

Accepted Solutions
jthomson Solution Sage
Solution Sage

Re: How to get Default Value instead of "Blank" in DAX Calculation

You want to put this in an IF statement and ask IF(ISBLANK(ReportsNotSentCount),0,ReportsNotSentCount), syntax probably wrong but you should get the gist of it

View solution in original post

4 REPLIES 4
jthomson Solution Sage
Solution Sage

Re: How to get Default Value instead of "Blank" in DAX Calculation

You want to put this in an IF statement and ask IF(ISBLANK(ReportsNotSentCount),0,ReportsNotSentCount), syntax probably wrong but you should get the gist of it

View solution in original post

Microsoft v-huizhn-msft
Microsoft

Re: How to get Default Value instead of "Blank" in DAX Calculation

Hi @deepak91g,

Please follow the solution @jthomson posted. If you have resolved your issue, please mark the right reply as answer or welcome to share your own solution. If you haven't, you'd better post some sample table for further analysis.

Best Regards,
Angelia

deepak91g Advocate III
Advocate III

Re: How to get Default Value instead of "Blank" in DAX Calculation

This worked for me thanks

Kerbrose
New Member

Re: How to get Default Value instead of "Blank" in DAX Calculation

How to show the deafult value/data is null in powerbi table  but when we have use the filter/slicer then show the data.

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors