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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
lastnn30
Post Patron
Post Patron

Inserting 0 or $0 instead of empty cell

Hi

I created this martix (see below please). SalesPerson Chin did not have any sales for month of March. want Power BI inseting 0 or $0 instead of nothing. Thank you very much.

SNAG-0531.jpg 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lastnn30 , usually adding +0 to measure can help

 

Sales new =[Sales] +0

 

 

Sometimes it can give a lot many values, then you can try to force range again

0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @lastnn30 , 

Please refer to the following pbix file to see if it helps you.

Create a measure.

Measure =
VAR max_ =
    SUM ( 'Table'[value] )
RETURN
    IF ( ISBLANK ( max_ ), 0, MAX ( 'Table'[value] ) )

vpollymsft_0-1649051357228.png

 

If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.

 

Best Regards

Community Support Team _ Polly

 

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

Ashish_Mathur
Super User
Super User

Hi,

Try this measure

Measure 2 = coalesce([measure 1],0)

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@lastnn30 , usually adding +0 to measure can help

 

Sales new =[Sales] +0

 

 

Sometimes it can give a lot many values, then you can try to force range again

0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.