cancel
Showing results for
Did you mean:
Highlighted
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

#### Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

#### Community News & Announcements

Get your latest community news and announcements.

#### Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 129 members 1,548 guests
Recent signins: