<?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: Dax query to create a measure that returns values from another columns based on slicer selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query-to-create-a-measure-that-returns-values-from-another/m-p/2905038#M94752</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471283" data-lia-user-login="Anindita198" class="lia-mention lia-mention-user"&gt;Anindita198&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your needs , I create a sample to return the value you want .&lt;/P&gt;
&lt;P&gt;Original data :&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then add a slicer with pagename .&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a measure to count sum of&amp;nbsp;&lt;SPAN&gt;unique visits and unique visitors .&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _VISITORS=DISTINCTCOUNT('Table'[visitors])
VAR _VISITS=DISTINCTCOUNT('Table'[visits])
RETURN _VISITS+_VISITORS&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;When you choose pagename =page 1,you will get a result like this (unique visitors is 4 and unique visits is 4 , so the sum is 8):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I have attached my pbix file , you can refer to it .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 01:53:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-15T01:53:13Z</dc:date>
    <item>
      <title>Dax query to create a measure that returns values from another columns based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query-to-create-a-measure-that-returns-values-from-another/m-p/2902759#M94592</link>
      <description>&lt;P&gt;I want to create a measure which will return sum of unique visits and unique visitors based on pagename selected in slicer .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note - pagename, visits and visitors column are all part of same table .&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 06:16:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query-to-create-a-measure-that-returns-values-from-another/m-p/2902759#M94592</guid>
      <dc:creator>Anindita198</dc:creator>
      <dc:date>2022-11-14T06:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dax query to create a measure that returns values from another columns based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query-to-create-a-measure-that-returns-values-from-another/m-p/2905038#M94752</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="471283" data-lia-user-login="Anindita198" class="lia-mention lia-mention-user"&gt;Anindita198&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your needs , I create a sample to return the value you want .&lt;/P&gt;
&lt;P&gt;Original data :&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then add a slicer with pagename .&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a measure to count sum of&amp;nbsp;&lt;SPAN&gt;unique visits and unique visitors .&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _VISITORS=DISTINCTCOUNT('Table'[visitors])
VAR _VISITS=DISTINCTCOUNT('Table'[visits])
RETURN _VISITS+_VISITORS&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;When you choose pagename =page 1,you will get a result like this (unique visitors is 4 and unique visits is 4 , so the sum is 8):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I have attached my pbix file , you can refer to it .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 01:53:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query-to-create-a-measure-that-returns-values-from-another/m-p/2905038#M94752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T01:53:13Z</dc:date>
    </item>
  </channel>
</rss>

