cancel
Showing results for
Did you mean:
Regular Visitor

## force a graph to start from zero

Hi all,

I'm trying to force a graph to start from zero with no success. The graph is based on data tables which doesn't have zero's but empty cells instead.
(Those data tables are not the original data tables. those tables are based on measures and calculate culomns i created).

how can i force the graph to start from zero? OR how can i change the tables report to have zero's instead of empty cells?

+the graph and the data tables are under "Report" feild. i mean, in the vizualisation area

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User

## Re: force a graph to start from zero

In your measure or column formula, do something like this at then end

IF(ISBLANK(__var),0,__var)

Where __var is a variable that you are calculating (what is currently being returned by the measure/column).

### I have book! Learn Power BI from Packt

Proud to be a Datanaut!

Community Support Team

## Re: force a graph to start from zero

Hi @rashel2002,

IF function should work well here. I made one sample for your reference.

Create the measure as below.

`Measure = var total = CALCULATE(SUM(Table1[count]))returnIF(ISBLANK(total),0,total)`

For more details, please check the pbix as attached.

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Super User

## Re: force a graph to start from zero

In your measure or column formula, do something like this at then end

IF(ISBLANK(__var),0,__var)

Where __var is a variable that you are calculating (what is currently being returned by the measure/column).

### I have book! Learn Power BI from Packt

Proud to be a Datanaut!

Community Support Team

## Re: force a graph to start from zero

Hi @rashel2002,

IF function should work well here. I made one sample for your reference.

Create the measure as below.

`Measure = var total = CALCULATE(SUM(Table1[count]))returnIF(ISBLANK(total),0,total)`

For more details, please check the pbix as attached.

Regards,

Frank

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

Announcements

#### Community Highlights

Find out what's new in the Power BI Community!

#### Power Platform Summit North America

Register by September 5 to save \$200

#### Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 316 members 3,196 guests
Recent signins: