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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Show Blanks as Zero Values as opposed to empty cells

Hi Experts

 

I thought this was straight forward you just add +0 to the DAX as it add zero values to balnk cells.

Here is my DAX formula i want to zero data points not as blank but 0 as shown in the image they are current empty cells.

IMAGE


Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DAX

 

PMSComplaintsMN = CALCULATE(IF(ISBLANK(COUNTA('PMS_COMPLAINT'[MATERIAL_ID])),BLANK(),COUNTA('PMS_COMPLAINT'[MATERIAL_ID])),
    ALLSELECTED(PMS_FINANCIAL_PDS[ROLL12_COMPLETE_PDS_IND]))

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

 

PMSComplaintsMN = CALCULATE(IF(ISBLANK(COUNTA('PMS_COMPLAINT'[MATERIAL_ID])),0,COUNTA('PMS_COMPLAINT'[MATERIAL_ID])),
    ALLSELECTED(PMS_FINANCIAL_PDS[ROLL12_COMPLETE_PDS_IND]))

Try this!

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Proud to be Datanaut!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 

 

PMSComplaintsMN = CALCULATE(IF(ISBLANK(COUNTA('PMS_COMPLAINT'[MATERIAL_ID])),0,COUNTA('PMS_COMPLAINT'[MATERIAL_ID])),
    ALLSELECTED(PMS_FINANCIAL_PDS[ROLL12_COMPLETE_PDS_IND]))

Try this!

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Proud to be Datanaut!

Anonymous
Not applicable

Hi nsrshk1

add the 0 in the place or Blank(), throws my graph out. see images. 

 

Image below is correct 100% (with) blank in dax
Graph1.PNG

 

 

 

 

 

 

 

 

Image 2 when blank is replaced with 0

graph2.PNG

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.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.