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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

undefined

Hi Guyss,

 

I want to show the zero value in line graph. Don't want the power bi to treat zero/null as blank.

I have created a measure and using that measure in line graph with months on x-axis.

 

Please help me out.

 

Thanks

Garima

4 REPLIES 4
HarishKM
Memorable Member
Memorable Member

@Anonymous

HarishKM_0-1616482573460.png

 

HarishKM
Memorable Member
Memorable Member

@Anonymous You can replace Null value with 0 then it will popoulate o in chart . Give a try n let me know.

HarishKM_0-1616423013972.png

 

amitchandak
Super User
Super User

@Anonymous , You can add +0 to measure, That will show as blank.

 

OR Use this option when you want range display to be corrected

 


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
Anonymous
Not applicable

This solution in not working @amitchandak 

garima12_0-1616482114913.png

Still the months having zero value in measure are not being shown in the graph.

 

Please help.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.