Forum Discussion
Custom axis labels for log transformation
- Anonymous1 year ago
Hi TzuChiao26
I ran into a challenge with a scatter plot in Power BI where both axes were log-transformed using something like
LOG10([Volume CP] + 1). The goal was to handle zeros and negative values gracefully while still making the data distribution readable especially when there are extreme values.
But here’s the catch: the axis labels ended up being 0, 1, 2, 3… which makes sense mathematically, but not to business users. They don’t think in logs they think in actual volumes like 10, 100, 1000.
So here’s how I tackled it:
-
I kept the log transformation for the axis values. This kept the chart clean and helped with outliers and skewed data.
-
Then I created a simple mapping table:
- 0 → 0
- 10 → 1
- 100 → 2
- 1000 → 3
Just two columns Orginal Value and Log value.
-
In the scatter chart, I added reference lines at log values 0, 1, 2, 3 and labeled them as 0, 10, 100, 1000. This way, the chart still uses the log scale, but the labels feel familiar and intuitive to stakeholders.
-
As a bonus, I added tooltips to show the actual [volume cp] value when users hover over a point. So even though the axis is log-scaled, they still see the real-world number.
It’s not a perfect solution Power BI doesn’t let us override axis labels directly but this approach made the chart much more digestible for non-technical users. And honestly, it saved me from having to explain what “log scale” means in every meeting.
_________________________________________________________________________________________________________________________
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
Akhil. -
Hi TzuChiao26 ,
Thank you for reaching out to the Microsoft Community Forum.
To address your issue, please refer to the blog below, which provides a solution and helpful guidance.
Solved: Customize Labels Scatter Chart - Microsoft Fabric Community
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks,
Akhil.
- tzuchiao1 year agoRegular Visitor
Sorry I think you misunderstood what I meant.
In my case, I need the numbers under each axis be displayed differently. Since my axes are measure values, I do not see a straightforward way of making a new column and label them differently.
The example you showed are labeling individual data points, and do not have much relevance with the axes themselves as far as I can see.
Could you please point out more specifically what in this post I should be looking for?