<?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: Discrepancy in Measure Results Between Different Visualization Types in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discrepancy-in-Measure-Results-Between-Different-Visualization/m-p/3380474#M127351</link>
    <description>&lt;P&gt;hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i did found where the problem was ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;power bi did create from alone a relation between my tables , what caused the misscount&lt;/P&gt;&lt;P&gt;good day !&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 10:48:07 GMT</pubDate>
    <dc:creator>koko_pbi</dc:creator>
    <dc:date>2023-08-15T10:48:07Z</dc:date>
    <item>
      <title>Discrepancy in Measure Results Between Different Visualization Types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discrepancy-in-Measure-Results-Between-Different-Visualization/m-p/3377944#M127224</link>
      <description>&lt;P&gt;hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need your help ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm encountering an issue with a DAX measure in Power BI where the results differ between different types of visualizations on the same report page. The measure is intended to count occurrences of a specific keyword within a text column. However, I'm observing inconsistent behavior when comparing card, table, and graph visualizations.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- i did try with two dax function , same result,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LocationCount = 
var location_table = 
    FILTER(
        'all content', 
        CONTAINSSTRING(
            'all content'[Location(s)], 
            SELECTEDVALUE(
                'location list'[Location(s)]
                )
            )
        )
var location_number = 
   COUNTROWS(location_table)


return 
  location_number &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR LocationPartsCount =
SUMX(
    'all content',
    IF(
        SEARCH(
              SELECTEDVALUE('location list'[Location(s)]),
                'all content'[Location(s)], 1, 0) &amp;gt; 0,
            1,
            0
        )
    )
RETURN LocationPartsCount&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- In a card visualization, the measure seems to work correctly, providing the expected count of occurrences.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- However, when the same measure is used in a table or graph visualization, it only counts occurrences where the keyword is&amp;nbsp; equal (=) and not when it's part of a larger text (e.g., "Mongolia|United States|other county").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;&amp;nbsp; the keywords are in separate table&lt;BR /&gt;but what is weird in this case, is that it woks perfectly for other column,&amp;nbsp; like tags column, or names&amp;nbsp;&lt;BR /&gt;but not for location.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;let say :&amp;nbsp;&lt;BR /&gt;i have&amp;nbsp;&lt;BR /&gt;col1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; col2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;col3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; col4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; location (as col 5)&lt;BR /&gt;value1.1&amp;nbsp; &amp;nbsp;value2.1&amp;nbsp; &amp;nbsp; value3.1&amp;nbsp; &amp;nbsp; value4.1&amp;nbsp; Mongolia|United States&lt;BR /&gt;value1.2&amp;nbsp; &amp;nbsp;value2.2&amp;nbsp; &amp;nbsp; value3.2&amp;nbsp; &amp;nbsp; value4.2&amp;nbsp; Mongolia&lt;/P&gt;&lt;P&gt;value1.3&amp;nbsp; &amp;nbsp;value2.3&amp;nbsp; &amp;nbsp; value3.3&amp;nbsp; &amp;nbsp; value4.3&amp;nbsp; Mongolia|Germany&lt;/P&gt;&lt;P&gt;value1.4&amp;nbsp; &amp;nbsp;value2.4&amp;nbsp; &amp;nbsp; value3.4&amp;nbsp; &amp;nbsp; value4.4&amp;nbsp; Mongolia|France&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;through my dax measure i want to calculate the occurencies for each country for exemple ,&lt;/P&gt;&lt;P&gt;i did extract all unique country from this col to list, that i convert into a sigle table col&amp;nbsp;&lt;BR /&gt;then i check if a country in the list is in the location(as col 5)&lt;BR /&gt;country list table&lt;BR /&gt;country (col)&lt;/P&gt;&lt;P&gt;Mongolia&lt;/P&gt;&lt;P&gt;United States&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;France&lt;BR /&gt;United Kingdom&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but my measure count only line where the country = to the country in location (it seems like it use "=" and not "in" operator) even with "containsstring"&amp;nbsp;&lt;/P&gt;&lt;P&gt;it will count me&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mongolia&amp;nbsp; -&amp;gt; 1 ,&amp;nbsp; &amp;nbsp;but the country is repeated 4 times&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i do use the same function for other cols , with the same process, and it works fine , but here not !!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you have any idea&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if i can expliain more, plz tell me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 18:46:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discrepancy-in-Measure-Results-Between-Different-Visualization/m-p/3377944#M127224</guid>
      <dc:creator>koko_pbi</dc:creator>
      <dc:date>2023-08-13T18:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy in Measure Results Between Different Visualization Types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discrepancy-in-Measure-Results-Between-Different-Visualization/m-p/3379516#M127308</link>
      <description>&lt;P&gt;no one knows what wrong ??&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i did test somethings&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think&amp;nbsp; there is some metadata in there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;because when i create myself the coutries and enter the value into new table , iget the correct count ,&lt;/P&gt;&lt;P&gt;but with the automation process, United States for exemple get only where United States is as alone word, but not within a list United States|France|Germany&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i did text.clean , change the type and use other extract process, always the wrong result if it comes from the main table !!! really weird&amp;nbsp;&lt;BR /&gt;do you have any idea how i can detect the metadata or delete them ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 18:31:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discrepancy-in-Measure-Results-Between-Different-Visualization/m-p/3379516#M127308</guid>
      <dc:creator>koko_pbi</dc:creator>
      <dc:date>2023-08-14T18:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Discrepancy in Measure Results Between Different Visualization Types</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discrepancy-in-Measure-Results-Between-Different-Visualization/m-p/3380474#M127351</link>
      <description>&lt;P&gt;hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i did found where the problem was ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;power bi did create from alone a relation between my tables , what caused the misscount&lt;/P&gt;&lt;P&gt;good day !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 10:48:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Discrepancy-in-Measure-Results-Between-Different-Visualization/m-p/3380474#M127351</guid>
      <dc:creator>koko_pbi</dc:creator>
      <dc:date>2023-08-15T10:48:07Z</dc:date>
    </item>
  </channel>
</rss>

