cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rashel2002 Regular Visitor
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 area30 - Copy.PNG31.PNG

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
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


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Community Support Team
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]))
return
IF(ISBLANK(total),0,total)

Capture.PNG

 

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
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


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Community Support Team
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]))
return
IF(ISBLANK(total),0,total)

Capture.PNG

 

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.

Helpful resources

Announcements
Community Highlights

Community Highlights

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

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

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.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 316 members 3,196 guests
Please welcome our newest community members: