<?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: Help with DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1869331#M40041</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="23457" data-lia-user-login="SivaMani" class="lia-mention lia-mention-user"&gt;SivaMani&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the measure on table 2. It is showing stats as expected. Problem I'm now stuck with is, I have a stacked bar chart with User(from table 2) as Axis and ID(from table 1) as total values. I also have a filter for User from table 2 as slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever I select user in slicer (from table 2), the total ID comes up correctly which represents relevant KPI with link to category but the stacked bar chart is not reflecting the relevant ID's for the category and KPI. It is showing count of all ID's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please any suggestion on this?&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 07:57:11 GMT</pubDate>
    <dc:creator>dandamudisanjay</dc:creator>
    <dc:date>2021-05-28T07:57:11Z</dc:date>
    <item>
      <title>Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1855424#M39695</link>
      <description>&lt;P&gt;Hi Experts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you all are doing well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping to get some help with the following issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have two tables, table 1 and table 2 connected with 1-N relation&amp;nbsp; with fields as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Category&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;User&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;KPI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;User&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Users have different KPI's and KPI is linked to category. we need to display total of ID's once we select the user so the relevant KPI (in text) gets selected behind the scenes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please could you share any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 01:39:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1855424#M39695</guid>
      <dc:creator>dandamudisanjay</dc:creator>
      <dc:date>2021-05-21T01:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1855607#M39697</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226631" data-lia-user-login="dandamudisanjay" class="lia-mention lia-mention-user"&gt;dandamudisanjay&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you are good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have two table, so why you are not making relationship between them with "Many to one"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may get the related KPI's .&lt;/P&gt;&lt;P&gt;If it was not relavent, share few records for both table, will reply soon on that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 03:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1855607#M39697</guid>
      <dc:creator>Fsciencetech</dc:creator>
      <dc:date>2021-05-21T03:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1855837#M39708</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226631" data-lia-user-login="dandamudisanjay" class="lia-mention lia-mention-user"&gt;dandamudisanjay&lt;/a&gt;, Is your requirement to count the number of KPIs by User?&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 06:08:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1855837#M39708</guid>
      <dc:creator>SivaMani</dc:creator>
      <dc:date>2021-05-21T06:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1868724#M40030</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="23457" data-lia-user-login="SivaMani" class="lia-mention lia-mention-user"&gt;SivaMani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to get total of ID's from table 1 which meets the following conditions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- if KPI = "Target1" then count of ID's where category is "category 1"&lt;/P&gt;&lt;P&gt;- if KPI = "Target2" then count of ID's where category is "category 2"&lt;/P&gt;&lt;P&gt;- else, total count of ID's&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 02:16:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1868724#M40030</guid>
      <dc:creator>dandamudisanjay</dc:creator>
      <dc:date>2021-05-28T02:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1868725#M40031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="222072" data-lia-user-login="Fsciencetech" class="lia-mention lia-mention-user"&gt;Fsciencetech&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to get total of ID's from table 1 which meets the following conditions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- if KPI = "Target1" then count of ID's where category is "category 1"&lt;/P&gt;&lt;P&gt;- if KPI = "Target2" then count of ID's where category is "category 2"&lt;/P&gt;&lt;P&gt;- else, total count of ID's&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 02:16:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1868725#M40031</guid>
      <dc:creator>dandamudisanjay</dc:creator>
      <dc:date>2021-05-28T02:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1868879#M40038</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226631" data-lia-user-login="dandamudisanjay" class="lia-mention lia-mention-user"&gt;dandamudisanjay&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Try this in a measure,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count of Id =
VAR __KPI =
    MAX ( Table2[KPI] )
RETURN
    SWITCH (
        TRUE (),
        __KPI = "Target1", CALCULATE ( COUNT ( Table1[Id] ), Table1[Category] = "category 1" ),
        __KPI = "Target2", CALCULATE ( COUNT ( Table1[Id] ), Table1[Category] = "category 2" ),
        COUNT ( Table1[Id] )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Note: You may need to change the cross-filtering as bidirectional&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 03:31:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1868879#M40038</guid>
      <dc:creator>SivaMani</dc:creator>
      <dc:date>2021-05-28T03:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1869331#M40041</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="23457" data-lia-user-login="SivaMani" class="lia-mention lia-mention-user"&gt;SivaMani&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the measure on table 2. It is showing stats as expected. Problem I'm now stuck with is, I have a stacked bar chart with User(from table 2) as Axis and ID(from table 1) as total values. I also have a filter for User from table 2 as slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever I select user in slicer (from table 2), the total ID comes up correctly which represents relevant KPI with link to category but the stacked bar chart is not reflecting the relevant ID's for the category and KPI. It is showing count of all ID's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please any suggestion on this?&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 07:57:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1869331#M40041</guid>
      <dc:creator>dandamudisanjay</dc:creator>
      <dc:date>2021-05-28T07:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1869499#M40047</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226631" data-lia-user-login="dandamudisanjay" class="lia-mention lia-mention-user"&gt;dandamudisanjay&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try the user column from Table 1?&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 09:11:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX/m-p/1869499#M40047</guid>
      <dc:creator>SivaMani</dc:creator>
      <dc:date>2021-05-28T09:11:19Z</dc:date>
    </item>
  </channel>
</rss>

