<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynamic y-Axis calculation with Deneb in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4782897#M62437</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882994"&gt;@v-menakakota&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your reply. I checked the group and the two solved issues but unfortunately none of the displayed visuals contained what I need to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe to make it clearer, all I need to achieve with this visual is to define a range for the y-axis which I want to see. Let me give you an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case I want the y axis to begin at the lower and at&amp;nbsp;&lt;STRONG&gt;min_avg_rate - ( 40% of&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;min_avg_rate)&lt;/STRONG&gt;. And the top end of the axis should be&amp;nbsp;&lt;STRONG&gt;max_avg_rate + ( 40% of&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;min_avg_rate)&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;And I tried to first scale the y-axis with static values, but even that gets me weird results. The boundaries are not respected and the y-Axis is not displayed properly anymore.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am wondering if I defined the scale of the axis with the domain in the wrong place or in the wrong way.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 11:28:48 GMT</pubDate>
    <dc:creator>distra</dc:creator>
    <dc:date>2025-07-31T11:28:48Z</dc:date>
    <item>
      <title>Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4781013#M62410</link>
      <description>&lt;P&gt;Hi everyone, hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/124852"&gt;@giammariam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I have recently started exploring &lt;STRONG&gt;Deneb&lt;/STRONG&gt; Visuals. In my particular case I want to display &lt;EM&gt;Average Cost per Month&lt;/EM&gt; while offering to switch between currencies on my Dashboard. So I decided to try and adapt a Deneb template for a KPI Card with a line chart, that shows the KPI for the month the user hovers over: Here is what I (almost) want it to look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="distra_0-1753863077802.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1287189i78150606A020AAAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="distra_0-1753863077802.png" alt="distra_0-1753863077802.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I achieved with the Template and some help by Claude and Copilot.&lt;BR /&gt;However, although I usually advocate for the zero-based approach to show the actual dimensions, in this case the changes month over month are so small, that the customers of this dashboard want this chart to be zoomed in on the area around the max and min values to actually see changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I calculated max and min&amp;nbsp; boundaries (global max + 20% of the global min value &amp;amp; global min value - 20% of global min value) but I can't get the axis to adapt to the borders I defined. To test the functionality I wanted to provide static values first to set my boundaries and after that apply my calculated values. But even with the static values I don't get to the desired result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add the following section to my y-Encoding, my generated KPI card does not display any axis anymore.&lt;/P&gt;&lt;P&gt;My data range is from 228 to 232, so that should well be within the defined range.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"scale": {
    "zero": false,
    "domain": [150,250]
},&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="distra_1-1753864319780.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1287198i407354C7BD449398/image-size/medium?v=v2&amp;amp;px=400" role="button" title="distra_1-1753864319780.png" alt="distra_1-1753864319780.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I use an even wider range like [80, 300] the Axis re-appears but will not use the entire range of the Line Chart anymore. Plus it also does not correctly scale the axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="distra_2-1753864619877.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1287199i95DDAAF1B3AC5F5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="distra_2-1753864619877.png" alt="distra_2-1753864619877.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have a wrong understanding of the domain attribute?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Vega-Lite with a Specification- and a Config-File, I can provide both codes in full if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 11:17:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4781013#M62410</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-07-30T11:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4781242#M62416</link>
      <description>&lt;H1&gt;Vega Lite Specification&lt;/H1&gt;&lt;LI-CODE lang="markup"&gt;{
  "description": "Area chart with text updated when hovering over a point. Author: Joanna Sekiewicz",
  "title": "Average Rate by Month",
  "data": {"name": "dataset"}, 
  "transform": [
    {
      "joinaggregate": [
        {
          "op": "max",
          "field": "Month",
          "as": "max_period"
        }
      ]
    },
    {
      "calculate": "datum.max_avg_rate + datum.min_avg_rate * 0.4",
      "as": "upper_limit_yAxis"
    },
    {
      "calculate": "datum.min_avg_rate + datum.min_avg_rate * 0.4",
      "as": "lower_limit_yAxis"
    }
  ],
  "encoding": {   
    "y": {
      "field": "Avg Rate dynamic Currency",
      "type": "quantitative",     
      "scale": {
        "zero": false,
        "domain": [80,300]
      },
      "axis": {
        "title": null,
        "labels": true,
        "ticks": true,
        "grid": true,
        "domain": true,
        "labelColor": "#605E5C",
        "labelFont": "Segoe UI Semibold",
        "labelFontSize": 10,
        "tickColor": "#E1DFDD",
        "gridColor": "#F3F2F1",
        "domainColor": "#E1DFDD"
      }
    },
    "x": {
      "field": "Month",
      "type": "temporal"
    }
  },
  "layer": [
    {
      "description": "sparkline definition",
      "mark": "area",
      "encoding": {
        "y": {"field": "Avg Rate dynamic Currency"}
      }
    },
    {
      "description": "points activated by hovering over",
      "params": [
        {
          "name": "hoverPoint",
          "select": {
            "type": "point",
            "on": "pointermove",
            "encodings": ["x"],
            "clear": "pointerout",
            "nearest": true
          }
        }
      ],
      "encoding": {
        "y": {"field": "Avg Rate dynamic Currency"},
        "opacity": {"value": 0}
      },
      "mark": {"type": "point"}
    },
    {
      "description": "details for hovered point (or the last one)",
      "transform": [
        {
          "calculate": "isDefined(hoverPoint.Month) ? hoverPoint.Month[0] == datum.Month : datum.Month==datum.max_period",
          "as": "displayDetails"
        },
        {
          "filter": "datum.displayDetails"
        }
      ],
      "layer": [
        {
          "description": "point referring to displayed details",
          "mark": "point",
          "encoding": {
            "opacity": {"value": 1},
            "y": {"field": "Avg Rate dynamic Currency"}
          }
        },
        {
          "mark": "rule",
          "encoding": {
            "opacity": {
              "condition": {
                "param": "hoverPoint",
                "empty": false,
                "value": 1
              },
              "value": 0
            }
          }
        },
        {
          "mark": {
            "type": "text",
            "size": 28,
            "fontWeight": "normal",
            "color": "#2D7A89"
          },
          "encoding": {
            "text": {
              "field": "Avg Rate formatted"
            },
            "x": {"value": -10},
            "y": {"value": -50}
          }
        },
        {
          "mark": {
            "type": "text",
            "size": 13
          },
          "encoding": {
            "text": {
              "field": "Month",
              "format": "%b-%Y",
              "formatType": "time"
            },
            "x": {"value": -10},
            "y": {"value": -25}
          }
        }
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;Config&lt;/H1&gt;&lt;LI-CODE lang="markup"&gt;{
  "view": {
    "stroke": "transparent",
    "fill": "transparent"
  },
  "font": "Segoe UI semibold",
  "area": {
    "line": true,
    "interpolate": "monotone",
    "color": {
      "gradient": "linear",
      "x1": 1,
      "y1": 1,
      "x2": 1,
      "y2": 0,
      "stops": [
        {"offset": 0, "color": "#ffffff00"},
        {
          "offset": 1,
          "color": "#2D7A89A0"
        }
      ]
    }
  },
  "rule": {
    "strokeWidth": 0.3,
    "color": "grey"
  },
  "line": {
    "interpolate": "monotone",
    "color": "#2D7A89",
    "strokeWidth": 3,
    "strokeCap": "round",
    "strokeJoin": "round"
  },
  "point": {
    "filled": true,
    "size": 85,
    "color": "#2D7A89"
  },
  "text": {
    "align": "left",
    "fill": "#605E5C"
  },
  "axis": {
    "title": null,
    "labels": false,
    "ticks": false,
    "grid": false,
    "domain": false
  },
  "title": {
    "anchor": "start",
    "dx": 0,
    "dy": -8,
    "fontSize": 18.5,
    "fontWeight": "bold",
    "color": "#252423"
  }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Jul 2025 11:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4781242#M62416</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-07-30T11:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4781371#M62417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/709051"&gt;@distra&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for reaching out to the Microsoft fabric community forum.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Make sure the values you're plotting actually fall within the domain [150, 250] in the layer where you're applying the scale.&lt;/P&gt;
&lt;P&gt;In layered visuals like KPI cards, ensure the scale override is set on the correct layer, ideally the one rendering the line/chart.&lt;/P&gt;
&lt;P&gt;Make sure that axis is not set to null or being turned off in your encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.  &lt;/P&gt;
&lt;P&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Community Support Team&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 12:19:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4781371#M62417</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-07-30T12:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4781446#M62420</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882994"&gt;@v-menakakota&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all values are well within that range, these are my current values:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="distra_0-1753881027211.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1287289iE6CD41DCB582583E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="distra_0-1753881027211.png" alt="distra_0-1753881027211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I did not understand the concept of layers well enough to define the axis correctly. THis is my code that defines the encoding:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"encoding": {   
    "y": {
      "field": "Avg Rate dynamic Currency",
      "type": "quantitative",     
      "scale": {
        "zero": false,
        "domain": [80,300]
      },
      "axis": {
        "title": null,
        "labels": true,
        "ticks": true,
        "grid": true,
        "domain": true,
        "labelColor": "#605E5C",
        "labelFont": "Segoe UI Semibold",
        "labelFontSize": 10,
        "tickColor": "#E1DFDD",
        "gridColor": "#F3F2F1",
        "domainColor": "#E1DFDD"
      }
    },
    "x": {
      "field": "Month",
      "type": "temporal"
    }
  },&lt;/LI-CODE&gt;&lt;P&gt;But actually, this is not defined inside the layer definitions, maybe that's the mistake?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 13:13:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4781446#M62420</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-07-30T13:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4782744#M62433</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/709051"&gt;@distra&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please go through the below blog and solved issues which may help you in resolving the issues:&lt;/P&gt;
&lt;P&gt;&lt;A title="https://community.fabric.microsoft.com/t5/DENEB-and-Power-BI-Enthusiasts/gh-p/DENEBandPowerBIEnthusiasts" href="https://community.fabric.microsoft.com/t5/DENEB-and-Power-BI-Enthusiasts/gh-p/DENEBandPowerBIEnthusiasts" target="_blank" rel="noreferrer noopener"&gt;DENEB and Power BI Enthusiasts - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://community.fabric.microsoft.com/t5/Desktop/Deneb-Vega-Lite-Sub-Columns/m-p/4640053" href="https://community.fabric.microsoft.com/t5/Desktop/Deneb-Vega-Lite-Sub-Columns/m-p/4640053" target="_blank" rel="noreferrer noopener"&gt;Solved: Deneb Vega Lite Sub Columns? - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://community.fabric.microsoft.com/t5/Desktop/dynamic-y-axis-with-dynamic-y-axis-label/m-p/3073814#M1043183" href="https://community.fabric.microsoft.com/t5/Desktop/dynamic-y-axis-with-dynamic-y-axis-label/m-p/3073814#M1043183" target="_blank" rel="noreferrer noopener"&gt;Solved: haRe: dynamic y-axis with dynamic y-axis label - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.  &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Community Support Team&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 09:50:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4782744#M62433</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-07-31T09:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4782897#M62437</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882994"&gt;@v-menakakota&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your reply. I checked the group and the two solved issues but unfortunately none of the displayed visuals contained what I need to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe to make it clearer, all I need to achieve with this visual is to define a range for the y-axis which I want to see. Let me give you an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case I want the y axis to begin at the lower and at&amp;nbsp;&lt;STRONG&gt;min_avg_rate - ( 40% of&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;min_avg_rate)&lt;/STRONG&gt;. And the top end of the axis should be&amp;nbsp;&lt;STRONG&gt;max_avg_rate + ( 40% of&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;min_avg_rate)&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;And I tried to first scale the y-axis with static values, but even that gets me weird results. The boundaries are not respected and the y-Axis is not displayed properly anymore.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am wondering if I defined the scale of the axis with the domain in the wrong place or in the wrong way.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 11:28:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4782897#M62437</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-07-31T11:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4783733#M62449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/709051"&gt;@distra&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question.&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;A title="https://community.fabric.microsoft.com/t5/power-bi-community-blog/how-to-provide-sample-data-in-the-power-bi-forum/ba-p/963216" href="https://community.fabric.microsoft.com/t5/Power-BI-Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Community Support Team&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 04:30:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4783733#M62449</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-08-01T04:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4784032#M62457</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882994"&gt;@v-menakakota&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please find the sample data in a usable format. Sorry for not providing it in this format earlier, I thought it was only needed to verify my defined y-Axis range is not too small for my actual range of values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;__row__&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Month&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;MonthName&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Avg Rate dynamic Currency&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Avg Rate formatted&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;0&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Jan&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Jan&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;232,9179259&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 232.92&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;1&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Feb&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Feb&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;232,1264879&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 232.13&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;2&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Mar&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Mar&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;232,1775412&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 232.18&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;3&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Apr&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Apr&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;232,0739998&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 232.07&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;4&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-May&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;May&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;230,4090975&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 230.41&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;5&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Jun&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Jun&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;229,1148892&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 229.11&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;6&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Jul&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Jul&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;230,0921796&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 230.09&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;7&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Aug&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Aug&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;229,7630773&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 229.76&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;8&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Sep&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Sep&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;229,6737823&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 229.67&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;9&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Oct&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Oct&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;229,8118923&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 229.81&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;10&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Nov&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Nov&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;229,8118923&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 229.81&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;11&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2025-Dec&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Dec&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;229,8935053&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;$ 229.89&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a quick summary on what I have vs. what I want to achieve:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bild_2025-08-01_100016489.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1287854i1C3F626BD07AE2DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bild_2025-08-01_100016489.png" alt="Bild_2025-08-01_100016489.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I am very satisfied with the visual created, everything works well, besides the Y-Axis Range. By default it spans from 0 to a little above my maximum Value. As you can see in the table, my values for &lt;EM&gt;Avg Rate dynamic Currency&amp;nbsp;&lt;/EM&gt;are in a very small range, so the actual changes are hardly visible. So instead of the default range that should be about [0, 250], I want something like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bild_2025-08-01_100648659.png" style="width: 456px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1287860iFB3611DF9F0191B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bild_2025-08-01_100648659.png" alt="Bild_2025-08-01_100648659.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This was created using a standard Line chart in Power BI. But I would prefer to use my custom Deneb visual over this one, because when I hover I immediately see the current month's value in the proper format, without needing a tooltip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is clearer, all that's missing is the ability to set the axis on my Deneb chart to a smaller range. For the reference chart with the standard line chart I used the exact same data with a y-Axis range of [225, 235].&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 08:21:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4784032#M62457</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-08-01T08:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4786256#M62492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/709051"&gt;@distra&lt;/a&gt;&amp;nbsp; &amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Apologies for the delayed response. Could you please review the following configuration and confirm if it meets the requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"scale"&lt;/SPAN&gt;: {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"zero"&lt;/SPAN&gt;: &lt;SPAN&gt;false&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"domain"&lt;/SPAN&gt;: [&lt;SPAN&gt;225&lt;/SPAN&gt;, &lt;SPAN&gt;235&lt;/SPAN&gt;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.  &amp;nbsp;&lt;BR /&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Community Support Team&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 07:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4786256#M62492</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-08-04T07:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4786292#M62493</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882994"&gt;@v-menakakota&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no problem at all, take all the time you need please.&lt;/P&gt;&lt;P&gt;It was my understanding that the exact code you put there would scale my y-Axis to the samE range that I had shared in my example. However, when I add it, the visual output is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="distra_0-1754293198755.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288458i85E4A40E6461E451/image-size/medium?v=v2&amp;amp;px=400" role="button" title="distra_0-1754293198755.png" alt="distra_0-1754293198755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The y-Axis and area shading completely disappear, although the range is absolutely correct.&lt;/P&gt;&lt;P&gt;For your reference, I added it here:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"encoding": {   
    "y": {
      "field": "Avg Rate dynamic Currency",
      "type": "quantitative",
      "scale": {
        "zero": false,
        "domain": [225, 235]
      },
      "axis": {
        "title": null,
        "labels": true,
        "ticks": true,
        "grid": true,
        "domain": true,
        "labelColor": "#605E5C",
        "labelFont": "Segoe UI Semibold",
        "labelFontSize": 10,
        "tickColor": "#E1DFDD",
        "gridColor": "#F3F2F1",
        "domainColor": "#E1DFDD"
      }
    },
    "x": {
      "field": "Month",
      "type": "temporal"
    }
  },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the encoding block after the fransforms and before the layers (please reference my full configuration in my other comment if more context is needed). If I defined it in the wrong way or position, please let me know. I am quite confused why this does not work, because I had exactly the same approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your continous support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 07:47:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4786292#M62493</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-08-04T07:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4786623#M62504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/709051"&gt;@distra&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for sharing the sample data.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We are currently trying to reproduce the issue on our side for further analysis. To help with that, could you please also share the corresponding pbix file? This will ensure we are aligned with your &amp;nbsp;visual configurations.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 11:32:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4786623#M62504</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-08-04T11:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4786679#M62507</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882994"&gt;@v-menakakota&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;unfortunately the pbix contains sensitive information which I cannot share.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since Deneb is a standalone visual, which can be configured completely decoupled from the rest of my file, what can I provide besides the sample dataset that could help you?&lt;BR /&gt;I will try to provide whatever is required to solve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 12:11:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4786679#M62507</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-08-04T12:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4787244#M62517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/709051"&gt;@distra&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The area mark is designed to have a zero baseline, so even if you cut the domain, it is trying to plot the remainder of the shape outside the domain (as the second y-value is zero). It would work with a line mark as there is only a single y-coordinate to worry about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, what is happening here is that your y-scale and axis are being correctly set to the desired range, but the size of your chart is condensing the vertical scale into the equivalent amount of space. You can see it "kind of" working if you make the visual container larger, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dmp_0-1754343706774.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288628i9195F8D6582C8700/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dmp_0-1754343706774.png" alt="dmp_0-1754343706774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(ignore the 'undefined'; that's a copy/paste issue with your sample data at my end)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to resolve this is to instruct Vega-Lite to &lt;A href="https://vega.github.io/vega-lite/docs/scale.html#example-clipping-or-removing-unwanted-data-points" target="_self"&gt;clip&lt;/A&gt; the area mark. You should be able to make the following changes to your spec:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Update the scale as follows (removing &lt;FONT face="courier new,courier"&gt;"zero": false&lt;/FONT&gt;), e.g.:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  ...
  "encoding": {   
    "y": {
      "field": "Avg Rate dynamic Currency",
      "type": "quantitative",
      "scale": {
        "domain": [80, 235]  // or whatever you need min/max to be
      },
      ...
    },
    ...
  }
  ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Update the area mark definition to include a clip as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  ...
  "layer": [
    {
      "description": "sparkline definition",
      "mark": {
        "type":"area",
        "clip": true
      },
      ...
    },
    ...
  }
  ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will now cut the baseline of the plotted area, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dmp_1-1754344042001.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288629iD44559D2A158CEF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dmp_1-1754344042001.png" alt="dmp_1-1754344042001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hopefully this should be all you need to resolve. Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(and thanks for using Deneb!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 21:49:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4787244#M62517</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2025-08-04T21:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4787600#M62524</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for reaching out, this works like a charm! I used it with the same boundaries I had provided for the example chart with native Power BI visuals and it looks great!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="distra_0-1754380925426.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288733i3E5C0F7C87FA07F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="distra_0-1754380925426.png" alt="distra_0-1754380925426.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I was expecting it to be a simple task to replace the static values by my pre-calculated values, but it seems like Vega-Lite won't let me use the calculations in the domain directly.&lt;BR /&gt;&lt;BR /&gt;I have made the following update to my transform section. Is there a way to directly reference my calculated upper and lower boundaries in the domain?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;"transform": [
    {
      "joinaggregate": [
        {
          "op": "max",
          "field": "Month",
          "as": "max_period"
        },
        {
          "op": "max",
          "field": "Avg Rate dynamic Currency",
          "as": "max_avg_rate"
        },
        {
          "op": "min",
          "field": "Avg Rate dynamic Currency",
          "as": "min_avg_rate"
        }
      ]
    },
    {
      "calculate": "datum.max_avg_rate - datum.min_avg_rate",
      "as": "delta_max_min"
    },
    {
      "calculate": "datum.max_avg_rate + datum.delta_max_min",
      "as": "upper_limit_yAxis"
    },
    {
      "calculate": "datum.min_avg_rate - datum.delta_max_min",
      "as": "lower_limit_yAxis"
    }
  ],&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 08:06:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4787600#M62524</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-08-05T08:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4787613#M62525</link>
      <description>&lt;P&gt;I'm a bit short on time as it's later here, but you can do this with the &lt;A href="https://vega.github.io/vega-lite/docs/extent.html" target="_self"&gt;extent transform&lt;/A&gt;, which will let you hoist your min/max to a top-level &lt;A href="https://vega.github.io/vega/docs/signals/" target="_self"&gt;signal&lt;/A&gt; (called &lt;A href="https://vega.github.io/vega-lite/docs/parameter.html" target="_self"&gt;params&lt;/A&gt; in Vega-Lite). These are easier to access in &lt;A href="https://vega.github.io/vega/docs/expressions/" target="_self"&gt;expressions&lt;/A&gt;, which you can use in the &lt;A href="https://vega.github.io/vega-lite/docs/scale.html#domain:~:text=String%20%7C%20ParameterExtent%20%7C%20DomainUnionWith%20%7C-,ExprRef,-Customized%20domain%20values" target="_self"&gt;scale domain&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a quick, minimal example that you can use as a reference. This clips the area to the extents of the values (in conjunction with the clip approach discussed previously):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dmp_0-1754382250185.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288738i73286092CA49A4DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dmp_0-1754382250185.png" alt="dmp_0-1754382250185.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "$schema": "https://vega.github.io/schema/vega-lite/v6.json",
  "data": {
    "url": "data/stocks.csv"
  },
  "transform": [
    {
      "filter": "datum.symbol==='GOOG'"
    },
    {
      "extent": "price",
      "param": "y_extents"
    }
  ],
  "mark": {
    "type": "area",
    "clip": true
  },
  "encoding": {
    "x": {
      "field": "date",
      "type": "temporal"
    },
    "y": {
      "field": "price",
      "type": "quantitative",
      "scale": {
        "domain": [{"expr": "y_extents[0]"}, {"expr": "y_extents[1]"}]
      }
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://vega.github.io/editor/#/url/vega-lite/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykBaADZ04JAGyUAVhDYA7EABoQAEySYUqUAwBOgtCrVJOmNlADWESlAjEQAXyWZtSWRABmbbQjQBtUG5pBTDhtfVVMBgRKCABPBCY2QQBeFIByAHEAeUz01PsFUDgAD2DZTH0cbRooOEUQHCRnb3QYgH1i0swIewBdJWRtMzRQTBicWvRGuBQlKGEcNCcGOAcQOFkoNmUaWTJhkCL9gLhBZTC1WscxiZBghBxPJD1VmKOaE7P0SurL2+v9ACODBcmDoahopDq0CeE1AyjYyB2vkKRUq+jaHXWXR8AAYevkUWiWu0SliID4AIz4uw9Ox0uxAA" target="_self"&gt;You can explore this in the Vega Editor here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pertinent parts are as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  ...
  "transform": [
    ...
    {
      "extent": "price",
      "param": "y_extents"
    }
  ],
  ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a calculation that will take the min/max of a specified field and store them as a variable. You can see this in the &lt;STRONG&gt;Signal&lt;/STRONG&gt; pane (in either Deneb or the Vega Editor), e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dmp_1-1754382427345.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1288739iB413120474DB8C12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dmp_1-1754382427345.png" alt="dmp_1-1754382427345.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an array that can then be referenced in the domain evaluation, e.g.:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "encoding": {
    ...
    "y": {
      ...
      "scale": {
        "domain": [
          {"expr": "y_extents[0]"},
          {"expr": "y_extents[1]"}
        ]
      }
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an example of extraction of the direction values, but you could also use downstream params to manipulate these values (such as adding a padding factor). this is similar to a transform in a data stream.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I hope this is clear and provides you with some ideas on how to apply it to your design. If you need me to implement your specification exactly, it would be helpful if you could supply an example .pbix file, and I can review it when I'm next back online.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 08:31:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4787613#M62525</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2025-08-05T08:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4787645#M62526</link>
      <description>&lt;P&gt;Daniel, you're my hero!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By replacing my existing min and max calculations with the proposed &lt;STRONG&gt;y_extents&lt;/STRONG&gt; of my field&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;Avg Rate dynamic Currenc&lt;/EM&gt;y and recreating my calculations for upper and lower boundaries directly in the expression for the domain, it works exactly as intended.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I already tested it, I can toggle through all currencies used in our organization and the chart will perfectly adapt the axis to the right values in that currency, zoomed into the desired area!&lt;BR /&gt;&lt;BR /&gt;Thank you so much, have a good rest!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Aug 2025 08:52:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4787645#M62526</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-08-05T08:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4788360#M62533</link>
      <description>&lt;P&gt;Glad it's working for you! It occurred to me (after some sleep) that you might be able to set the &lt;A href="https://vega.github.io/vega-lite/docs/encoding.html#position:~:text=of%20the%20plot.-,y2,or%20a%20string%20%22height%22%20for%20the%20height%20of%20the%20plot.,-Position%20Field%20Definition" target="_self"&gt;&lt;FONT face="courier new,courier"&gt;y2&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;encoding channel for the area mark to your derived minimum value from the join aggregate, which would minimize the number of moving parts. You would still need to set the y-scale's &lt;FONT face="courier new,courier"&gt;zero&lt;/FONT&gt; to false, but it works just as well without needing to apply the extents and expressions to the domain. Here's a quick revision using the above example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "$schema": "https://vega.github.io/schema/vega-lite/v6.json",
  "data": {
    "url": "data/stocks.csv"
  },
  "transform": [
      {
        "filter": "datum.symbol==='GOOG'"
      },
      {
        "joinaggregate": [
          {
            "op": "min",
            "field": "price",
            "as": "min_price"
          }
        ]
      }
  ],
  "mark": {
    "type": "area"
  },
  "encoding": {
    "x": {
      "field": "date",
      "type": "temporal"
    },
    "y": {
      "field": "price",
      "type": "quantitative",
      "scale": {
        "zero": false
      }
    },
    "y2": {
      "field": "min_price"
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://vega.github.io/editor/#/url/vega-lite/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykBaADZ04JAGyUAVhDYA7EABoQAEySYUqUAwBOgtCrVJOmNlADWESlAjEQAXyWZtSWRABmbbQjQBtUG5pBTDhtfVVMBgRKCABPBCY2QQBeFIByAHEAeUz01PsFUEk2GlkkMjJtPmDfUDYcfQQSxRAAuEFlfRxtGig4ZqQIBpKAfS6evrsAXSmlZG0zNFBMGJw+9CRKlAcQOFkoNmUSskWQAA8T1vawtT7HFbWQYIQcTyQ9bZiLmjaO9DHe5rLVb6ACODBcmDoahopGa0Dea1AAC8Qmw0G43hA4HYPgAmL4-IayUbdAE4uxAA" target="_self"&gt;And here it is in the Vega Editor&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 02:51:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4788360#M62533</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2025-08-06T02:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y-Axis calculation with Deneb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4788635#M62537</link>
      <description>&lt;P&gt;Thank you for further enhancing my understanding of the logic.&lt;/P&gt;&lt;P&gt;Since this was my first encounter with Deneb and Vega-Lite I yet have to make some big effort to fully understand the structure of it. But your comments and the link to the Vega-Editor to play around help a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 09:09:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-y-Axis-calculation-with-Deneb/m-p/4788635#M62537</guid>
      <dc:creator>distra</dc:creator>
      <dc:date>2025-08-06T09:09:10Z</dc:date>
    </item>
  </channel>
</rss>

