Home Business Intelligence Fast Ideas: Line Chart and Space Chart Conditional Formatting in Energy BI

Fast Ideas: Line Chart and Space Chart Conditional Formatting in Energy BI

0
Fast Ideas: Line Chart and Space Chart Conditional Formatting in Energy BI

[ad_1]

Line Chart and Area Chart Conditional Formatting in Power BI

On this publish I present you a really fast trick to format Line Chart and Space Chart conditionally in Energy BI. As it is a “Fast Tip” I’m going to maintain this publish actually brief.

One among my clients requested me to point out time sequence in line charts and space charts. However she need’s it to be conditionally formatted primarily based on the common worth over time. Let’s preserve it easy, she desires to point out “Gross sales by 12 months Month” in line chart, however, spotlight the info factors which might be under “Common Gross sales per 12 months Month”. As chances are you’ll know, we at the moment should not have the posh of formatting line charts and space charts. However wait, this publish is all about that. Let’s dig into it.

From the above state of affairs, you maybe already guessed that we have to create a measure which defines the color primarily based on “Common Gross sales per 12 months Month” to have the ability to format the chart conditionally. If any information level is under the “Common Gross sales per 12 months Month” then we spotlight it in Orange, whether it is above the “Common Gross sales per 12 months Month” then we keep on with the default color.

Let’s do it.

It’s very easy to do, simply comply with the steps under:

  • Put a column chart on the canvas
  • Add the “12 months Month” column to the column chart’s Axis
  • Add the measure to the column chart’s Values
  • Format the column chart conditionally, extra on this later
  • Flip the column chart to line chart or space chart by choosing line/space chart from Visuals pane

That’s it. Let’s look into extra particulars of the answer.

This technique completely assist conditional formatting, however you must take note of the sector you’re utilizing on X Axis. You’ll want to have steady values on X axis, due to this fact the values have to be both a “quantity” or “date” (datetime). What you usually see in values of “12 months Month” column is a string like “2019 Jan”, “2019-Jan” or “2019 – Jan”, proper? So that you simply have to convert “2019 Jan” or “2019-Jan” to “date” information sort both in Energy Question or by way of the “Column Instruments” from the ribbon. If we don’t convert string up to now and put the “12 months Month” on X Axis, we now have “Categorical” sort on X Axis and that’s NOT what we wish.

Have you ever used this technique? Have you learnt a greater technique to do the identical factor? Please share your ideas within the feedback part under.

Obtain the PBIX file from right here.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here