Forum Discussion

wo_guy's avatar
wo_guy
Frequent Visitor
5 years ago
Solved

How do I overlay Log scale to Bar Chart?

I am trying to show a Log Scale line to a Bar Chart.

I created a line chart as you can find in the PBI file below but I am unable to overlay to the stacked column chart.

I have tried using the Line and Stacked Column chart but I dont have any option to show the line values as a Log Scale.

 

I tried writing DAX for the Log values but I guess I am very new to get the log DAX correct.

Please find the data linked below:

PowerBI File

Data Used

Can you please help?

Thanks

  • Would it work to make a measure to calculate the Log value and use that on a linear scale

    Log Net (Kg) = LOG(SUM('Cycle Reports'[NET [KG]]]))

     

     

    Pat

     

3 Replies

  • mahoneypat's avatar
    mahoneypat
    Icon for Microsoft Employee rankMicrosoft Employee

    Would it work to make a measure to calculate the Log value and use that on a linear scale

    Log Net (Kg) = LOG(SUM('Cycle Reports'[NET [KG]]]))

     

     

    Pat

     

  • wo_guy's avatar
    wo_guy
    Frequent Visitor

    mahoneypat What would be the be the equation to show the trendline as an exponential trendline like the one you can see in excel?

     

    The problem is that the log line is not a smoothed one (by design) and that would be the most desireable.

    • mahoneypat's avatar
      mahoneypat
      Icon for Microsoft Employee rankMicrosoft Employee

      I don't think that will be easy.  The Analytics panel isn't active for that visual, so you'd have to calculate the equation terms with a complex DAX expression and then another measure to add the line to the chart.

      Pat