<?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 need some help with a measure error in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-some-help-with-a-measure-error/m-p/3957692#M153595</link>
    <description>&lt;P&gt;hello does anybody hace the right measure for me so this measure works it gives me now a error&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Meting &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'public transaction_lines'&lt;/SPAN&gt;&lt;SPAN&gt;[entry_number]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'public transaction_lines'&lt;/SPAN&gt;&lt;SPAN&gt;[cost_center_description]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'public glaccount_classification_mappings'&lt;/SPAN&gt;&lt;SPAN&gt;[classification_description]&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;"Cost of goods sold"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;see screenshot for error&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 29 May 2024 10:42:48 GMT</pubDate>
    <dc:creator>Krijgersss</dc:creator>
    <dc:date>2024-05-29T10:42:48Z</dc:date>
    <item>
      <title>need some help with a measure error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-some-help-with-a-measure-error/m-p/3957692#M153595</link>
      <description>&lt;P&gt;hello does anybody hace the right measure for me so this measure works it gives me now a error&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Meting &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'public transaction_lines'&lt;/SPAN&gt;&lt;SPAN&gt;[entry_number]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'public transaction_lines'&lt;/SPAN&gt;&lt;SPAN&gt;[cost_center_description]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'public glaccount_classification_mappings'&lt;/SPAN&gt;&lt;SPAN&gt;[classification_description]&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;"Cost of goods sold"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;see screenshot for error&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2024 10:42:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-some-help-with-a-measure-error/m-p/3957692#M153595</guid>
      <dc:creator>Krijgersss</dc:creator>
      <dc:date>2024-05-29T10:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: need some help with a measure error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-some-help-with-a-measure-error/m-p/3958028#M153600</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650918" data-lia-user-login="Krijgersss" class="lia-mention lia-mention-user"&gt;Krijgersss&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What about swapping "-" with "=" in your dax formula like yellow highlighted below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 12:29:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-some-help-with-a-measure-error/m-p/3958028#M153600</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-05-29T12:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: need some help with a measure error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-some-help-with-a-measure-error/m-p/3958039#M153601</link>
      <description>&lt;P&gt;the - is a = 7so thats not the problem&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 12:32:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-some-help-with-a-measure-error/m-p/3958039#M153601</guid>
      <dc:creator>Krijgersss</dc:creator>
      <dc:date>2024-05-29T12:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: need some help with a measure error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-some-help-with-a-measure-error/m-p/3959789#M153662</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp; Thanks for your contribution on this thread.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650918" data-lia-user-login="Krijgersss" class="lia-mention lia-mention-user"&gt;Krijgersss&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Upon analysis of the error message, it appears to be indicative of a data type conversion issue. As recommended by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;, it would be beneficial to replace the minus sign(-) with an equal sign(=). It’s important to note that both ‘&lt;EM&gt;public glaccount_classification_mappings’[classification_description]&lt;/EM&gt; and &lt;EM&gt;“Cost of goods sold”&lt;/EM&gt; are &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt; &lt;/FONT&gt;types, hence the use of a minus sign between them is&lt;STRONG&gt; not suitable&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, from your latest reply, the minus sign over here would have been an equal sign. That should return the result you want. If it still reports an error, could you please provide the following information:&lt;BR /&gt;1. What is the &lt;STRONG&gt;Data type&lt;/STRONG&gt;&amp;nbsp; of the field&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;'public transaction_lines'[cost_center_description]&lt;/EM&gt;&amp;nbsp; and &lt;EM&gt;'public glaccount_classification_mappings'[classification_description]&lt;/EM&gt; ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;2. What is the error message?&lt;BR /&gt;3. Please provide some&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;raw data&lt;/STRONG&gt;&amp;nbsp;in your table '&lt;STRONG&gt;Revenue&lt;/STRONG&gt;' (&lt;STRONG&gt;&lt;I&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/I&gt;&lt;/STRONG&gt;) with&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;format&amp;nbsp;and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C02%7Cv-yiruan%40microsoft.com%7Cf991eeec0ca14e637b1608dc7faf8b4d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638525639163171812%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=62vUmgf1zB%2FbdDgeMLSR6m5FQaVECopWevAOFnldx2Q%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 05:49:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-some-help-with-a-measure-error/m-p/3959789#M153662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-30T05:49:50Z</dc:date>
    </item>
  </channel>
</rss>

