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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Frequent Visitor

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

1 ACCEPTED SOLUTION
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

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

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

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

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

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

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

#### Fabric certifications survey

Certification feedback opportunity for the community.

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors