<?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: Crossfilter to return text values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1382901#M25275</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user requirement is such that they want to use Entity Name (or any other columns from Entity Master) and Consol Status as report level filters. The logic of Consol Status is that Few entities from Entity Master (not all, say 100 out of 500) get consolidated for a specific period, e.g. a particular Entity 'A' is getting consolidated for Q1 &amp;amp; Q2 for FY20 and not consolidated for Q3 &amp;amp; Q4. Accordingly Consol Status is 'Y' for Entity 'A' for Q1&amp;amp;Q2 and N for Q3 &amp;amp; Q4. But the user also wants that when I use the Consol Status filter/slicer at report as ='Y', the Entity Name filter/slicer only shows the specific Entities which are getting consolidated i.e. only the list of 100. Hence this model. I cannot create measures, as these need to be used as filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea, why the following DAX code for a calculated column, is not overriding the filter b/n Date and Entity Consol Date from 'Single' in model to 'Both' direction? Is there any other way to achieve this?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Consol Status New = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var X = 'Entity Consol Status'[Consol Status ]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var Y = CALCULATE(X,CROSSFILTER('Date'[Date],'Entity Consol Status'[Date],Both))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return Y&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 21 Sep 2020 04:41:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-21T04:41:27Z</dc:date>
    <item>
      <title>Crossfilter to return text values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1379418#M25201</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Following is a brief/limited snapshot of my model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables Entity Master and Entity Consol Master, joined 1-M with single side filter. The Entity Consol Status has a Status flag - Consol Status(Y/N). I need the output that whenever I use the Status flag as a filter, it filters out the slicers from Entity Master. I know that this can be achieved if I convert the filter direction between Entity Master and Entity Consol Status to 'Both'. But this is not possible due to my model limitations (other joins). Is there any way I can achieve it through DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I need to use CrossFilter. But it will work only with functions like Calculate. And Calculate does not work on text columns.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 08:05:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1379418#M25201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-18T08:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Crossfilter to return text values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1379680#M25213</link>
      <description>&lt;P&gt;Hi, Anonymous&lt;/a&gt;&amp;nbsp;, to my understanding, the issue results from a requirement of "Uphill filtering"(from Many to One) in contrast to intrinsic filter propagation from One to Many. Pls refer to &lt;A href="https://powerpivotpro.com/2014/08/filters-can-flow-up-hill-via-formulas-that-is/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;this blog&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp;dedicated to addressing such a common problem.&lt;/P&gt;&lt;P&gt;This blog offered a detailed solution, especially the Expanded Table one in the last part, a brilliant black magic by Italians.&lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 10:08:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1379680#M25213</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-09-18T10:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Crossfilter to return text values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1379915#M25216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Blog talks about using a Calculate function, but in my case I am unable to use it as I need to return a text value. Any help, how I can use Calculate for my use case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailee.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 11:48:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1379915#M25216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-18T11:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Crossfilter to return text values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1379966#M25217</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Yes, you can surely use CALCULATE like this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Calculate Text 1 =
VAR __status =
    MAX ( 'Entity Consol Master'[Consol Status] )
RETURN
    CALCULATE (
        CONCATENATEX (
            VALUES ( 'Entity Master'[EntityName] ),
            'Entity Master'[EntityName],
            UNICHAR ( 10 )
        ),
        'Entity Consol Master'[Consol Status] &amp;lt;&amp;gt; __status,
        CROSSFILTER ( 'Entity Consol Master'[Entity Code], 'Entity Master'[Entity_Code], BOTH )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Calculate Text 2 =
VAR __status =
    MAX ( 'Entity Consol Master'[Consol Status] )
RETURN
    CALCULATE (
        CONCATENATEX (
            VALUES ( 'Entity Master'[EntityName] ),
            'Entity Master'[EntityName],
            UNICHAR ( 10 )
        ),
        FILTER (
            ALL ( 'Entity Consol Master' ),
            'Entity Consol Master'[Consol Status] &amp;lt;&amp;gt; __status
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Better to attach a mockup file for further debugging if aforementioned measures don't work properly.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 12:43:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1379966#M25217</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-09-18T12:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Crossfilter to return text values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1380259#M25220</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not want to create the calculated column on Entity Master, as there are many other columns in this master which can be used for slicing on the report.&lt;/P&gt;&lt;P&gt;I am sorry, but I am unable to share any files due to access restrictions.&lt;/P&gt;&lt;P&gt;Another approach to my requirement can be:&lt;/P&gt;&lt;P&gt;If I update the model by reversing the filter directions as below - Change Filter direction between Entity Master and Entity Consol Status to Both and change filter direction between Entity Consol Status and Date to Single (as both the filter direction to 'Both' is creating circular reference.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Then the issue with slicing on Entity Master is resolved. But it results in cartesian product with date as below :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The first table depicts the actual value of the Consol status flag for Entity 886, for given periods/quarters. Second table shows the Cumulative Amount for all selected periods. But as soon as I pull Cumulative amount, a cartesian product is created for periods where the staus is 'N'. This works fine when the filter between Entity Consol Status and Date is bi-directional. Can I create a calculated column on Entity Consol Status, based on the Consol Status flag but overriding the filter with date to Both side filter such that the Cartesian issue is resolved?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much!&lt;/P&gt;&lt;P&gt;Shailee.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:11:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1380259#M25220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-18T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Crossfilter to return text values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1380937#M25237</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, in my opinion, you've overcomplicated such an issue. In fact, bi-direction relationship is &lt;STRONG&gt;NOT INDISPENSABLE&lt;/STRONG&gt;&amp;nbsp;in solving such "M to 1 filtering" issues; furthermore, "1 to M" is the only recommendation by DAX gurus and experts to normal users like us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I wrote are measures instead of calculated column formulae; the measures display all distinct&amp;nbsp;'Entity Master'[EntityName] items after filtering out what is sliced in column '&lt;SPAN&gt;Entity Consol Status'[&lt;/SPAN&gt;&lt;SPAN&gt;Consol Status], e.g. supposing 'Entity Consol Status'[Consol Status] = "Y", filter of 'Entity Consol Status'[Consol Status] = "N" can be propagated to&amp;nbsp;'Entity Master' and the measures displays filtered&amp;nbsp;'Entity Master'[EntityName] items.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By the same means, a relationship between Date(1) -&amp;nbsp;'Entity Consol Status'(M) is enough to implement such inverse filter propagation (from&amp;nbsp;'Entity Consol Status'(M) to&amp;nbsp;Date(1)).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 18:39:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1380937#M25237</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-09-18T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Crossfilter to return text values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1382901#M25275</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user requirement is such that they want to use Entity Name (or any other columns from Entity Master) and Consol Status as report level filters. The logic of Consol Status is that Few entities from Entity Master (not all, say 100 out of 500) get consolidated for a specific period, e.g. a particular Entity 'A' is getting consolidated for Q1 &amp;amp; Q2 for FY20 and not consolidated for Q3 &amp;amp; Q4. Accordingly Consol Status is 'Y' for Entity 'A' for Q1&amp;amp;Q2 and N for Q3 &amp;amp; Q4. But the user also wants that when I use the Consol Status filter/slicer at report as ='Y', the Entity Name filter/slicer only shows the specific Entities which are getting consolidated i.e. only the list of 100. Hence this model. I cannot create measures, as these need to be used as filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea, why the following DAX code for a calculated column, is not overriding the filter b/n Date and Entity Consol Date from 'Single' in model to 'Both' direction? Is there any other way to achieve this?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Consol Status New = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var X = 'Entity Consol Status'[Consol Status ]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var Y = CALCULATE(X,CROSSFILTER('Date'[Date],'Entity Consol Status'[Date],Both))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return Y&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Sep 2020 04:41:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1382901#M25275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-21T04:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Crossfilter to return text values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1383220#M25278</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;If you attach a mockup pbix file, it's way much easier to show your issues and highly likely a solution arrives sooner.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 06:35:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1383220#M25278</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-09-21T06:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Crossfilter to return text values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1383812#M25294</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;, I am not able to share files outside my organization&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 09:23:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Crossfilter-to-return-text-values/m-p/1383812#M25294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-21T09:23:35Z</dc:date>
    </item>
  </channel>
</rss>

