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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
deepak91g
Resolver II
Resolver II

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
jthomson
Solution Sage
Solution Sage

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

5 REPLIES 5
Anonymous
Not applicable

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

v-huizhn-msft
Employee
Employee

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

jthomson
Solution Sage
Solution Sage

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

Anonymous
Not applicable

Thank you so much it worked.

This worked for me thanks

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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