Forum Discussion

eliasayyy's avatar
eliasayyy
Memorable Member
8 months ago
Solved

How to create a dynamic Measure/Function to dynamically scale line and bar charts

Hello Everyone!   I am doing data analytics for marketing campaign.   I want to display on my line chart multiple measures based on Field parameter measure selected. some examples of measures.  ...
  • v-hjannapu's avatar
    8 months ago

    Hi eliasayyy,

    Thank you  for reaching out to the Microsoft fabric community forum.
    This is happening because Impressions has very big values compared to Clicks and Spend, so Power BI automatically sets the Y-axis based on Impressions and the other two look almost flat. Right now, Power BI does not support auto-scaling the Y-axis based on the measure selected through Field Parameters, and there is no DAX that can dynamically control the chart axis like that. The only practical options are to use a secondary Y-axis for smaller measures, keep separate charts for high and low value metrics, or convert the values into percentages or index format so the trends are visible.

    Hope the above provided information help you resolve the issue, if you have any further concerns or queries, please feel free to reach out to us.
    Regards,
    Community Support Team.