<?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: i need the deneb vega same clock need to take my measure and shoe date n time accordingly in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3315333#M43346</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524503" data-lia-user-login="PbiwithPrasad" class="lia-mention lia-mention-user"&gt;PbiwithPrasad&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I check the common visualization but not found the similar effect. Perhaps you can try use script-based visuals(R, Python) to manually plot this effect based on custom scripts and graph libraries.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-r-visuals" target="_blank"&gt;Create Power BI visuals using R - Power BI | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals" target="_blank"&gt;Create Power BI visuals using Python in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 03:22:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-05T03:22:59Z</dc:date>
    <item>
      <title>i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3312714#M43328</link>
      <description>&lt;P&gt;i need the deneb vega same clock need to take my measure and shoe date n time accordingly , for examples utc + 5:00 hours&amp;nbsp; which is my desired time zone&amp;nbsp; &amp;nbsp;time&amp;nbsp; and&amp;nbsp; how can i show it? pl help me urgent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in Vega examples we have a templet for clock but it works for now(), but i want it need to work for my desired zone, may be it can use a measure from data set or can be done inside the vega code , but it need to work for may desired time zone time.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 13:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3312714#M43328</guid>
      <dc:creator>PbiwithPrasad</dc:creator>
      <dc:date>2023-07-03T13:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3315333#M43346</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524503" data-lia-user-login="PbiwithPrasad" class="lia-mention lia-mention-user"&gt;PbiwithPrasad&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I check the common visualization but not found the similar effect. Perhaps you can try use script-based visuals(R, Python) to manually plot this effect based on custom scripts and graph libraries.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-r-visuals" target="_blank"&gt;Create Power BI visuals using R - Power BI | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals" target="_blank"&gt;Create Power BI visuals using Python in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 03:22:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3315333#M43346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-05T03:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3319275#M43384</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524503" data-lia-user-login="PbiwithPrasad" class="lia-mention lia-mention-user"&gt;PbiwithPrasad&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use &lt;FONT face="courier new,courier"&gt;&lt;A href="https://vega.github.io/vega/docs/expressions/#utcOffset" target="_self"&gt;utcOffset&lt;/A&gt;&lt;/FONT&gt; for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If using the default clock template, just update the &lt;FONT face="courier new,courier"&gt;init&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt; events for the &lt;FONT face="courier new,courier"&gt;currentDate&lt;/FONT&gt; signal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the template, this is using the &lt;A href="https://vega.github.io/vega/docs/expressions/#now" target="_self"&gt;&lt;FONT face="courier new,courier"&gt;now()&lt;/FONT&gt;&lt;/A&gt; expression, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  ...
  "signals": [
    {
      "name": "currentDate",
      "init": "now()",
      "on": [
        {
          "events": {
            "type": "timer",
            "throttle": 1000
          },
          "update": "now()"
        }
      ]
    },
    ...
  ]
  ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update this to use the desired hour offset from UTC, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;    {
      "name": "currentDate",
      "init": "utcOffset('hours', now(), 5)",
      "on": [
        {
          "events": {
            "type": "timer",
            "throttle": 1000
          },
          "update": "utcOffset('hours', now(), 5)"
        }
      ]
    },&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the complete spec with the changes applied that you can copy/paste into your visual:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "$schema": "https://vega.github.io/schema/vega/v5.json",
  "description": "A circular clock visualization showing the current time.",
  "width": 400,
  "height": 400,
  "signals": [
    {
      "name": "centerX",
      "init": "width/2"
    },
    {
      "name": "centerY",
      "init": "height/2"
    },
    {
      "name": "radiusRef",
      "init": "min(width,height)*0.8"
    },
    {
      "name": "sizeFactor",
      "init": "radiusRef/400"
    },
    {
      "name": "outerRadius",
      "init": "radiusRef/2"
    },
    {
      "name": "innerRadius",
      "init": "radiusRef/2 - (10 * sizeFactor)"
    },
    {
      "name": "currentDate",
      "init": "utcOffset('hours', now(), 5)",
      "on": [
        {
          "events": {
            "type": "timer",
            "throttle": 1000
          },
          "update": "utcOffset('hours', now(), 5)"
        }
      ]
    },
    {
      "name": "currentHour",
      "init": "hours(currentDate)+minutes(currentDate)/60",
      "on": [
        {
          "events": {
            "signal": "currentDate"
          },
          "update": "hours(currentDate)+minutes(currentDate)/60"
        }
      ]
    },
    {
      "name": "currentMinute",
      "init": "minutes(currentDate)+seconds(currentDate)/60",
      "on": [
        {
          "events": {
            "signal": "currentDate"
          },
          "update": "minutes(currentDate)+seconds(currentDate)/60"
        }
      ]
    },
    {
      "name": "currentSecond",
      "init": "seconds(currentDate)",
      "on": [
        {
          "events": {
            "signal": "currentDate"
          },
          "update": "seconds(currentDate)"
        }
      ]
    }
  ],
  "data": [
    {
      "name": "hours",
      "transform": [
        {
          "type": "sequence",
          "start": 0,
          "stop": 12,
          "step": 1,
          "as": "hour"
        },
        {
          "type": "formula",
          "expr": "centerX - cos(PI/2 + (datum.hour * PI/6)) * (outerRadius - (outerRadius-innerRadius)/2)",
          "as": "x"
        },
        {
          "type": "formula",
          "expr": "centerY - sin(PI/2 + (datum.hour * PI/6)) * (outerRadius - (outerRadius-innerRadius)/2)",
          "as": "y"
        },
        {
          "type": "formula",
          "expr": "centerX - cos(PI/2 + (datum.hour * PI/6)) * (innerRadius - 25 * max(sizeFactor, 0.4))",
          "as": "xHour"
        },
        {
          "type": "formula",
          "expr": "centerY - sin(PI/2 + (datum.hour * PI/6)) * (innerRadius - 25 * max(sizeFactor, 0.4))",
          "as": "yHour"
        }
      ]
    },
    {
      "name": "minutes",
      "transform": [
        {
          "type": "sequence",
          "start": 0,
          "stop": 60,
          "step": 1,
          "as": "minute"
        },
        {
          "type": "formula",
          "expr": "centerX - cos(PI/2 + (datum.minute * PI/30)) * (outerRadius - (outerRadius-innerRadius)/3)",
          "as": "x"
        },
        {
          "type": "formula",
          "expr": "centerY - sin(PI/2 + (datum.minute * PI/30)) * (outerRadius - (outerRadius-innerRadius)/2)",
          "as": "y"
        }
      ]
    }
  ],
  "scales": [
    {
      "name": "hourScale",
      "domain": {
        "data": "hours",
        "field": "hour"
      },
      "range": [0, {"signal": "2*PI"}]
    },
    {
      "name": "minutesScale",
      "domain": {
        "data": "minutes",
        "field": "minute"
      },
      "range": [0, {"signal": "2*PI"}]
    }
  ],
  "marks": [
    {
      "type": "arc",
      "encode": {
        "enter": {
          "x": {"signal": "centerX"},
          "y": {"signal": "centerY"},
          "startAngle": {"value": 0},
          "endAngle": {
            "signal": "2*PI"
          },
          "outerRadius": {
            "signal": "outerRadius"
          },
          "fill": {
            "value": "transparent"
          },
          "stroke": {"value": "black"}
        }
      }
    },
    {
      "type": "arc",
      "encode": {
        "enter": {
          "x": {"signal": "centerX"},
          "y": {"signal": "centerY"},
          "startAngle": {"value": 0},
          "endAngle": {
            "signal": "2*PI"
          },
          "outerRadius": {
            "signal": "innerRadius"
          },
          "fill": {"value": "#FCFCFC"},
          "opacity": {"value": 0.6},
          "stroke": {"value": "black"}
        }
      }
    },
    {
      "type": "symbol",
      "from": {"data": "minutes"},
      "encode": {
        "enter": {
          "size": {
            "signal": "pow(2*sizeFactor, 2)"
          },
          "x": {"field": "x"},
          "y": {"field": "y"},
          "angle": {
            "signal": "datum.minute*6"
          },
          "shape": {
            "value": "m 0 -5 v 10"
          },
          "stroke": {"value": "black"}
        }
      }
    },
    {
      "type": "symbol",
      "from": {"data": "hours"},
      "encode": {
        "enter": {
          "size": {
            "signal": "pow(2*sizeFactor, 2)"
          },
          "angle": {
            "signal": "datum.hour*30"
          },
          "shape": {
            "value": "m -5 -5 h 10 l -5 10 l -5 -10 Z"
          },
          "x": {"field": "x"},
          "y": {"field": "y"},
          "fill": {"value": "black"}
        }
      }
    },
    {
      "type": "text",
      "from": {"data": "hours"},
      "encode": {
        "enter": {
          "x": {"field": "xHour"},
          "y": {"field": "yHour"},
          "align": {"value": "center"},
          "baseline": {
            "value": "middle"
          },
          "text": {
            "signal": "datum.hour === 0 ? 12 : datum.hour"
          },
          "fontSize": {
            "signal": "25*max(sizeFactor, 0.4)"
          }
        }
      }
    },
    {
      "type": "symbol",
      "encode": {
        "enter": {
          "size": {
            "signal": "pow(2*sizeFactor, 2)"
          },
          "shape": {
            "value": "M 0 0 h-1 l 1 -160 l 1 160 h-1"
          },
          "x": {"signal": "centerX"},
          "y": {"signal": "centerY"},
          "fill": {"value": "red"},
          "stroke": {"value": "red"},
          "strokeSize": {"value": 2},
          "strokeCap": {
            "value": "round"
          }
        },
        "update": {
          "angle": {
            "signal": "currentSecond*6"
          }
        }
      }
    },
    {
      "type": "symbol",
      "encode": {
        "enter": {
          "size": {
            "signal": "pow(2*sizeFactor, 2)"
          },
          "shape": {
            "value": "M 0 0 h -2 l -5 -30 l 7 -120 l 7 120 l -5 30 h -2 "
          },
          "x": {"signal": "centerX"},
          "y": {"signal": "centerY"},
          "fill": {"value": "black"},
          "stroke": {"value": "grey"},
          "strokeCap": {
            "value": "round"
          },
          "strokeWidth": {
            "signal": "2* min(sizeFactor, 1)"
          }
        },
        "update": {
          "angle": {
            "signal": "currentMinute*6"
          }
        }
      }
    },
    {
      "type": "symbol",
      "encode": {
        "enter": {
          "size": {
            "signal": "pow(2*sizeFactor, 2)"
          },
          "shape": {
            "value": "M 0 0 h-3 l -4 -30 l 7 -80 l 7 80 l -4 30 h -3"
          },
          "x": {"signal": "centerX"},
          "y": {"signal": "centerY"},
          "fill": {"value": "black"},
          "stroke": {"value": "grey"},
          "strokeCap": {
            "value": "round"
          },
          "strokeWidth": {
            "signal": "2* min(sizeFactor, 1)"
          },
          "zIndex": {"value": 1}
        },
        "update": {
          "angle": {
            "signal": "currentHour*30"
          }
        }
      }
    },
    {
      "type": "arc",
      "encode": {
        "enter": {
          "x": {"signal": "centerX"},
          "y": {"signal": "centerY"},
          "startAngle": {"value": 0},
          "endAngle": {
            "signal": "2*PI"
          },
          "outerRadius": {
            "signal": "6*sizeFactor"
          },
          "fill": {"value": "black"},
          "stroke": {"value": "grey"},
          "zIndex": {"value": 1}
        }
      }
    },
    {
      "type": "arc",
      "encode": {
        "enter": {
          "x": {"signal": "centerX"},
          "y": {"signal": "centerY"},
          "startAngle": {"value": 0},
          "endAngle": {
            "signal": "2*PI"
          },
          "innerRadius": {
            "signal": "outerRadius"
          },
          "outerRadius": {
            "signal": "outerRadius + 14 * sizeFactor"
          },
          "fill": {"value": "#333"},
          "stroke": {"value": "grey"}
        }
      }
    }
  ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 23:18:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3319275#M43384</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2023-07-06T23:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341264#M43531</link>
      <description>&lt;P&gt;what if i want to have now + 5 hours and 30 minuits&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:20:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341264#M43531</guid>
      <dc:creator>PbiwithPrasad</dc:creator>
      <dc:date>2023-07-20T15:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341265#M43532</link>
      <description>&lt;P&gt;what if i want to have now + 5 hours and 30 minuits&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:21:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341265#M43532</guid>
      <dc:creator>PbiwithPrasad</dc:creator>
      <dc:date>2023-07-20T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341270#M43533</link>
      <description>&lt;P&gt;cant we make it in such a way that this excess time(+5:30) need to be taken from my measure.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:22:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341270#M43533</guid>
      <dc:creator>PbiwithPrasad</dc:creator>
      <dc:date>2023-07-20T15:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341332#M43534</link>
      <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397" data-lia-user-login="dm-p" class="lia-mention lia-mention-user"&gt;dm-p&lt;/a&gt;&amp;nbsp; got it how to add 5h 30 min thank you..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but can tou tell how to amke this to work with my measure .&lt;/P&gt;&lt;P&gt;lets suppose i have a measure whose result is 5:30, based on this i need my clock need to modified to new time (not utc)&lt;/P&gt;&lt;P&gt;if needed we can make two measures one with hours (eg:5) and other minuits (eg: 30) plz tell me the complete code for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so so much for your time and patience..&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:54:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341332#M43534</guid>
      <dc:creator>PbiwithPrasad</dc:creator>
      <dc:date>2023-07-20T15:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341334#M43535</link>
      <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397" data-lia-user-login="dm-p" class="lia-mention lia-mention-user"&gt;dm-p&lt;/a&gt;&amp;nbsp; got it how to add 5h 30 min thank you..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but can tou tell how to amke this to work with my measure .&lt;/P&gt;&lt;P&gt;lets suppose i have a measure whose result is 5:30, based on this i need my clock need to modified to new time (not utc)&lt;/P&gt;&lt;P&gt;if needed we can make two measures one with hours (eg:5) and other minuits (eg: 30) plz tell me the complete code for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so so much for your time and patience..&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:55:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341334#M43535</guid>
      <dc:creator>PbiwithPrasad</dc:creator>
      <dc:date>2023-07-20T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341337#M43536</link>
      <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397" data-lia-user-login="dm-p" class="lia-mention lia-mention-user"&gt;dm-p&lt;/a&gt;&amp;nbsp; got it how to add 5h 30 min thank you..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but can tou tell how to amke this to work with my measure .&lt;/P&gt;&lt;P&gt;lets suppose i have a measure whose result is 5:30, based on this i need my clock need to modified to new time (not utc)&lt;/P&gt;&lt;P&gt;if needed we can make two measures one with hours (eg:5) and other minuits (eg: 30) plz tell me the complete code for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so so much for your time and patience..&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:55:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3341337#M43536</guid>
      <dc:creator>PbiwithPrasad</dc:creator>
      <dc:date>2023-07-20T15:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3348431#M43588</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I am trying to find how to take utc time instead of the local time by using now().&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a simple way to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 09:43:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3348431#M43588</guid>
      <dc:creator>CK1992</dc:creator>
      <dc:date>2023-07-25T09:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3349092#M43599</link>
      <description>&lt;P&gt;Genarally when we publish a report it will show utc time only even we use now() also in power bi services, so no worries with utc, hope you understand, but if you want to show local time then you need to add the tome diff manually to now() so it will show a right time in services after publishing and sharing.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 15:11:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3349092#M43599</guid>
      <dc:creator>PbiwithPrasad</dc:creator>
      <dc:date>2023-07-25T15:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3349707#M43608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524503" data-lia-user-login="PbiwithPrasad" class="lia-mention lia-mention-user"&gt;PbiwithPrasad&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can access the dataset using the &lt;FONT face="courier new,courier"&gt;&lt;A href="https://vega.github.io/vega/docs/expressions/#data" target="_self"&gt;data&lt;/A&gt;&lt;/FONT&gt; function, which allows you to pass in the name of a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Deneb's dataset is named '&lt;FONT face="courier new,courier"&gt;dataset&lt;/FONT&gt;'.&lt;/LI&gt;
&lt;LI&gt;Passing in a single measure will result in a single row in the visual dataset.&lt;/LI&gt;
&lt;LI&gt;As Vega is built in JavaScript it uses zero-based indexes for arrays. Therefore you can access this single row with the &lt;FONT face="courier new,courier"&gt;[0]&lt;/FONT&gt; index.&lt;/LI&gt;
&lt;LI&gt;Once you have this row, you can use a similar accessor to get the name of your field, which I assume would be your measure.&lt;/LI&gt;
&lt;LI&gt;This can be assigned to a signal, and passed into the downstream work we did in my last post.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As &lt;FONT face="courier new,courier"&gt;utcOffset&lt;/FONT&gt; doesn't work well with decimal values, and you'd prefer to use hours with a decimal value to allow finer-grained offsets of half-hour or more, then we can do the calculation inside the visual. For this example, I'll use a decimal measure and convert to minutes in the &lt;FONT face="courier new,courier"&gt;utcOffset&lt;/FONT&gt; function to show how flexible you can be in-visual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could change this approach to use multiple measures using a similar process to create additional signals for minutes and making multiple calls to the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;utcOffset&lt;/FONT&gt; function accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this example my measure is called &lt;STRONG&gt;[Offset Value]&lt;/STRONG&gt;. and it's currently set to&amp;nbsp;&lt;STRONG&gt;5.5&lt;/STRONG&gt;&amp;nbsp;(which would be 5:30 in hours and minutes).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Above the &lt;FONT face="courier new,courier"&gt;currentDate&lt;/FONT&gt; signal, I'll create a new signal called offset, and use the approach outlined above to access the first row of my dataset's Offset Value field and multiply this by 60 to get the minutes, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  ...
  "signals": [
    ...
    {
      "name": "offset",
      "init": "data('dataset')[0]['Offset Value'] * 60"
    },
    ...
  ]
  ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll now get a signal named &lt;FONT face="courier new,courier"&gt;offset&lt;/FONT&gt;, which can be inspected in the&amp;nbsp;&lt;STRONG&gt;Signals&lt;/STRONG&gt; pane, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we can see, this has extracted the measure from the dataset's first row and has converted that value of 5.5 hours into 330 minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, we change the logic for our downstream &lt;FONT face="courier new,courier"&gt;currentDate&lt;/FONT&gt; signal to use this and offset by minutes rather than a hard-coded value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  ...
  "signals": [
    ...
    {
      "name": "currentDate",
      "init": "utcOffset('minutes', now(), offset)",
      "on": [
        {
          "events": {
            "type": "timer",
            "throttle": 1000
          },
          "update": "utcOffset('minutes', now(), offset)"
        }
      ]
    },
    ...
  ]
  ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our visual will now be assigned to the measure value, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a sample workbook with both clocks in there for you to play with.&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, 25 Jul 2023 22:02:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3349707#M43608</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2023-07-25T22:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: i need the deneb vega same clock need to take my measure and shoe date n time accordingly</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3350392#M43623</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;However, it does not work that way. Even if you publish it, it still takes the local time of your machine. I just tested.&lt;BR /&gt;I was wondering if you can help me take the UTC time instead of now().&lt;BR /&gt;Even the function&amp;nbsp;utcOffset('hours', now(), 0) does not work. This is because it still uses the now() function.&lt;/P&gt;&lt;P&gt;Could you please help me with it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 07:55:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/i-need-the-deneb-vega-same-clock-need-to-take-my-measure-and/m-p/3350392#M43623</guid>
      <dc:creator>CK1992</dc:creator>
      <dc:date>2023-07-26T07:55:37Z</dc:date>
    </item>
  </channel>
</rss>

