cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper II

## Gaps in the line on composite chart

Hi,

I have a composite column and line chart which has patchy data somethimes, and when it does the lines don't join up, they just have gaps.  When the values are zero I want the lines to go to zero and not just vanish. How do I fix this?

Thank you

1 ACCEPTED SOLUTION
Super User

@IntaBruce , That is because the values are blank, In case 0 it will show them on the axis.

You can add +0 to the measure. But it can show all month year, so control like

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

4 REPLIES 4
Helper II

Thank you @amitchandak and @Ashish_Mathur , both your suggestions achieved the result I needed.  Thank you so much for the speedy response and also helping to enhance my own Power BI skills 😍😍

Super User

You are welcome.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Super User

Hi,

The Submissions measure should be revised to

Submissions1 = coalesce([Submissions],0)

Do the same for the other measure which you are showing as a line.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Super User

@IntaBruce , That is because the values are blank, In case 0 it will show them on the axis.

You can add +0 to the measure. But it can show all month year, so control like

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

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors