<?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: compare table values with a measure does not work in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787232#M4372</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll do with onedrive:&lt;/P&gt;&lt;P&gt;&lt;A href="https://abb-my.sharepoint.com/:f:/p/domenico_musolino_ch/Ege2z2iYWEFHhxmFYMDvCAABzwRqbGxTB5FrEdLKcS-3rw?e=kFpfZP" target="_self"&gt;link to folder&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the folder I added the pbix and the data source (an excel sheet).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2019 13:07:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-09T13:07:32Z</dc:date>
    <item>
      <title>compare table values with a measure does not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/786956#M4358</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have observed a behaviour in DAX that I can't understand.&lt;/P&gt;&lt;P&gt;I want to compare&amp;nbsp; the "Leadtime" column in a table to determine the elements with "Leadtime" greater than a threshold:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;00_IsLTmorethanT2 = ('AO Input'[Leadtime]&amp;gt; &lt;STRONG&gt;'AO Input'[10_minLT]&lt;/STRONG&gt;) &lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#0000ff"&gt;#this does not work&lt;/FONT&gt;&lt;/SPAN&gt;&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;'AO Input'[Leadtime]&lt;/SPAN&gt; is a column&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;'AO Input'[10_minLT]&lt;/SPAN&gt; is a measure (copied at the end of this message)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;The expression written this way does not work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;It works if instead of an expression I compare against a constant value:&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;&lt;SPAN&gt;00_IsLTmorethanT2 = 'AO Input'[Leadtime]&amp;gt; &lt;STRONG&gt;360 &lt;/STRONG&gt;&lt;FONT color="#0000ff"&gt;#this works&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="helvetica"&gt;How can I fix this? Thanks for your help.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="helvetica"&gt;The expression calculating 10_minLT is this (it is a workaround to let the user input a parameter using a filter)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;10_minLT = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HASONEVALUE (T2[Material Lead Time]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUES (T2[Material Lead Time]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Sep 2019 09:20:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/786956#M4358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T09:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: compare table values with a measure does not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787019#M4362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the pbix, or a simplified version thereof that reproduces the issue?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 10:04:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787019#M4362</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-09-09T10:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: compare table values with a measure does not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787121#M4369</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;Thanks for replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, sure I can share a reduced version.&lt;/P&gt;&lt;P&gt;What is the recommended way of sharing pbix? I checked out the "using the community" forum but did not find instructions there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(maybe a hint for&amp;nbsp;Anonymous&lt;/a&gt; to add a "how to share a pbix with the community" there).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks and regards.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 11:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787121#M4369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T11:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: compare table values with a measure does not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787137#M4370</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sounds like a good idea. Many people actually ask that.&lt;/P&gt;
&lt;P&gt;You have to&lt;STRONG&gt; share the URL to the file hosted elsewhere&lt;/STRONG&gt;: Dropbox, Onedrive... or just upload the file to a site like &lt;A href="http://www.tinyupload.com" target="_self"&gt;tinyupload.com&lt;/A&gt; (no sign-up required).&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 11:39:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787137#M4370</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-09-09T11:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: compare table values with a measure does not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787232#M4372</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll do with onedrive:&lt;/P&gt;&lt;P&gt;&lt;A href="https://abb-my.sharepoint.com/:f:/p/domenico_musolino_ch/Ege2z2iYWEFHhxmFYMDvCAABzwRqbGxTB5FrEdLKcS-3rw?e=kFpfZP" target="_self"&gt;link to folder&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the folder I added the pbix and the data source (an excel sheet).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787232#M4372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T13:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: compare table values with a measure does not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787294#M4374</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;You have a calculated column in your table . That is static and there is no filter context; that's why your measure will always yield 180 HASONEVALUE is always FALSE.&amp;nbsp;You need to create a measure and use it in the table visual:&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;00_IsLTmorethanT2_Measure = (SELECTEDVALUE('AO Input'[Ges. Beschaffungszeit]) &amp;gt; 'AO Input'[10_minLT2])&lt;/PRE&gt;
&lt;SPAN&gt;&lt;SPAN&gt;and get rid of the&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;00_IsLTmorethanT2 column. See attached file&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.&lt;/STRONG&gt;&lt;/P&gt;
&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;Cheers&amp;nbsp;&amp;nbsp;&lt;IMG src="https://community.fabric.microsoft.com/html/badge_icons/SU18_powerbi_badge.png" border="0" alt="Datanaut" width="64" height="64" /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Sep 2019 14:11:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787294#M4374</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2019-09-09T14:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: compare table values with a measure does not work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787348#M4380</link>
      <description>&lt;P&gt;Great thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt; , it works great and I accepted your reply as solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, in my full report I still have the issue that the comparison result is not updated. That report is much more complicated, with different tables &amp;amp; relations among them.&lt;/P&gt;&lt;P&gt;I'll try sorting it out myself, keeping in mind that calculated columns are static.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again and have a nice day!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 15:00:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/compare-table-values-with-a-measure-does-not-work/m-p/787348#M4380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T15:00:38Z</dc:date>
    </item>
  </channel>
</rss>

