0

I am attempting to make a graph that has one column with a full month of data (black bars), and one column that fills up as the days of the month progress (green bars). I would also like to track the percentage of the forecast achieved each day as a line graph (red line) on the secondary axis.

The problem I am having is that it does not appear that one can exclude values that are zero. So in the graph I would like to have the red line disappear once the values become zero so that there isn't a massive drop of like in the image shown.

Graph showing the percentage drop of

3
  • Can you add a filter where difference<>0? Commented Oct 8, 2018 at 13:32
  • Create a calculated column where the values are blank() when the original column is zero. Commented Oct 8, 2018 at 14:54
  • 1
    I used the below function with BLANK() incorporated: = Table.AddColumn(#"Filtered Rows1", "Custom", each if [#"%difference"] = 0 then BLANK() else [#"%difference"]) The error I am receiving now is the saying that the name BLANK() is not recognised. Commented Oct 9, 2018 at 10:47

1 Answer 1

1

To fix this problem I inserted a blank spot if the condition is true. That is a "" after the 'then' statement to force a NULL. After this I changed the data type to percentage. The code is shown below and the resulting graph is shown afterwards.

= Table.AddColumn(#"Filtered Rows1", "AdjDiff", each if [#"%difference"] = 0 then "" else if [#"%difference"] <> 0 then [#"%difference"] else null)

Corrected Percentage Difference Line Graph

Sign up to request clarification or add additional context in comments.

1 Comment

Good job Hein, nice solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.