Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
wo_guy
Frequent Visitor

How do I overlay Log scale to Bar Chart?

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

Capture.PNGCapture1.PNG

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.

wo_guy_0-1611873667864.png

 

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

1 ACCEPTED SOLUTION
mahoneypat
Employee
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]]]))

 

mahoneypat_0-1611876609459.png

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
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?

wo_guy_0-1611880482779.png

 

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

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

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


mahoneypat
Employee
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]]]))

 

mahoneypat_0-1611876609459.png

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.