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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jonnyA
Responsive Resident
Responsive Resident

How do I make blank data show as 0?

Hello,

Let me first show you the measures I am using for this report ...

 

I believe this is the measure that will need to be tweaked ...


Count of Note ID = 
CALCULATE ( 
CALCULATE(DISTINCTCOUNT(rpt_DD_DailyLog_Dataset[Note_ID]), 
KEEPFILTERS ( rpt_DD_DailyLog_Dataset[Modifiers] in { "95", "GT", "GW~95", "GW~GT" }))) 
 
Total Encounters = 
CALCULATE ( 
CALCULATE(DISTINCTCOUNT(rpt_DD_DailyLog_Dataset[Note_ID]), 
KEEPFILTERS ( NOT ISBLANK ( rpt_DD_DailyLog_Dataset[Submitted_CPT] ) ), 
KEEPFILTERS ( NOT ISBLANK ( rpt_DD_DailyLog_Dataset[Billed_CPT] ) ) 
) ) 
  
% of Encounters Telehealth = 
DIVIDE([Count of Note ID][Total Encounters]) 

 

Below, in the matrix, I have highlighted where the "Count of Note ID" is blank.  I would prefer that would show as a "0" so then the "% of Telehealth Encounters" would give the percenatge.

Show blanks as 0 Power BI Community 2.2.21.PNG

Let me know if you need any additional information and I will be more than happy to provide!

 

Thank you in advance!

2 ACCEPTED SOLUTIONS
VijayP
Super User
Super User

@jonnyA 

Just Add +0 after the Formula., to get Zero instead of blank




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

jonnyA
Responsive Resident
Responsive Resident

@VijayP  , your suggestion worked for the percentage formula, thank you very much!!! 🙂

View solution in original post

4 REPLIES 4
smpa01
Super User
Super User

@jonnyA 

% of Encounters Telehealth = 
IF(DIVIDE([Count of Note ID], [Total Encounters])= BLANK(),0,DIVIDE([Count of Note ID], [Total Encounters]))
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
VijayP
Super User
Super User

@jonnyA 

Just Add +0 after the Formula., to get Zero instead of blank




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


jonnyA
Responsive Resident
Responsive Resident

@VijayP only if all these formula's could be that simple!  That worked, thank you very much 🙂 !!!

jonnyA
Responsive Resident
Responsive Resident

@VijayP  , your suggestion worked for the percentage formula, thank you very much!!! 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.