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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.