<?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: Cannot convert the literal to the expected type 'Edm.Decimal' in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/1816996#M29251</link>
    <description>&lt;P&gt;Maybe I'm missing something but how does the articele about type conversions issue in&amp;nbsp;Power Apps component framework relates to type conversion issue in&amp;nbsp;Power Query&amp;nbsp;OData Feed connector?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 14:46:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-30T14:46:29Z</dc:date>
    <item>
      <title>Cannot convert the literal to the expected type 'Edm.Decimal'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/1811785#M29215</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I’m building a PowerBI report using data from Azure DevOps OData.&lt;/P&gt;&lt;P&gt;Here is the query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
Source = OData.Feed (https://analytics.dev.azure.com/{org}/{proj}/_odata/v3.0-preview/WorkItems?
&amp;amp; "$apply=filter("
&amp;amp; "State eq 'Done'"
&amp;amp; "and startswith(Area/AreaPath,'somearea\subarea')"
&amp;amp; "and (WorkItemType eq 'Support Request' or WorkItemType eq 'Product Backlog Item')"
&amp;amp; ")"
&amp;amp; "/compute(year(CreatedDate) as Year, month(CreatedDate) as Month)"
&amp;amp; "/groupby ("
&amp;amp; "(Area/AreaPath, WorkItemType, Year, Month),"
&amp;amp; "aggregate (CycleTimeDays with average as CycleTimeAvg, LeadTimeDays with average as LeadTimeAvg)"
&amp;amp; ")"
,null, [Implementation="2.0",OmitValues = ODataOmitValues.Nulls,ODataVersion = 4])
in
Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OData URL works fine from the browser window - it returns all expected data.&lt;/P&gt;&lt;P&gt;But running this query from PowerBI Desktop resuls in error on one of the records:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DataSource.Error: OData: Cannot convert the literal '8.675E-06' to the expected type 'Edm.Decimal'.
Details:
    DataSourceKind=OData
    DataSourcePath=https://analytics.dev.azure.com/{org}/{proj}/_odata/v3.0-preview/WorkItems&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the raw data returned by OData endpoint:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"@odata.id":null,"Month":8,"Year":2020,"WorkItemType":"Product Backlog Item","LeadTimeAvg":3.762890575,"CycleTimeAvg":8.675E-06,"Area":{"@odata.id":null,"AreaPath":"somearea"}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviousely, PowerBI Desktop fails to interpred this value:&amp;nbsp;"CycleTimeAvg":&lt;STRONG&gt;8.675E-06&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Anybody knows how to fix that?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 14:41:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/1811785#M29215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-28T14:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert the literal to the expected type 'Edm.Decimal'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/1815776#M29238</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the link.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://crmchap.co.uk/dealing-with-cannot-convert-a-value-to-target-type-edm-decimal-error-in-power-apps-pcf-control/" target="_blank"&gt;Dealing with ‘Cannot convert a value to target type ‘Edm.Decimal’ Error in Power Apps PCF Control | The CRM Chap&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lionel Chen&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 05:37:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/1815776#M29238</guid>
      <dc:creator>v-lionel-msft</dc:creator>
      <dc:date>2021-04-30T05:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert the literal to the expected type 'Edm.Decimal'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/1816996#M29251</link>
      <description>&lt;P&gt;Maybe I'm missing something but how does the articele about type conversions issue in&amp;nbsp;Power Apps component framework relates to type conversion issue in&amp;nbsp;Power Query&amp;nbsp;OData Feed connector?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 14:46:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/1816996#M29251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-30T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert the literal to the expected type 'Edm.Decimal'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/2863851#M39424</link>
      <description>&lt;P&gt;How did you solve your problem?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 07:49:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/2863851#M39424</guid>
      <dc:creator>qihuiyu</dc:creator>
      <dc:date>2022-10-26T07:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot convert the literal to the expected type 'Edm.Decimal'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/2865186#M39434</link>
      <description>&lt;P&gt;Afaik it is still not fixed in PBI.&lt;BR /&gt;As a workaround try to filter the results so PBI won't receive too small values in data. Like&amp;nbsp;CycleTimeAvg &amp;gt; 0.05.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:27:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-convert-the-literal-to-the-expected-type-Edm-Decimal/m-p/2865186#M39434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-26T14:27:36Z</dc:date>
    </item>
  </channel>
</rss>

