<?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 DAX TO GET TWO OPTION SO THAT I CAN FILTER in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3247152#M119671</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi Community,&lt;BR /&gt;I am facing a problem in creating a dax formula.&lt;BR /&gt;so i have one column with stages. With that column i want to create another column where i will get 2 option.&amp;nbsp;&lt;BR /&gt;Option 1 is "Total"&lt;BR /&gt;Option 2 is "Stage 2"&lt;BR /&gt;&lt;BR /&gt;total is basically adding of all stages whereas second stage is only stage 2.&lt;BR /&gt;&lt;BR /&gt;Can it be possible with DAX? if yes please help me with the dax or give another solution.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Yashashri&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 09:43:59 GMT</pubDate>
    <dc:creator>YASHASHRI</dc:creator>
    <dc:date>2023-05-22T09:43:59Z</dc:date>
    <item>
      <title>DAX TO GET TWO OPTION SO THAT I CAN FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3247152#M119671</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi Community,&lt;BR /&gt;I am facing a problem in creating a dax formula.&lt;BR /&gt;so i have one column with stages. With that column i want to create another column where i will get 2 option.&amp;nbsp;&lt;BR /&gt;Option 1 is "Total"&lt;BR /&gt;Option 2 is "Stage 2"&lt;BR /&gt;&lt;BR /&gt;total is basically adding of all stages whereas second stage is only stage 2.&lt;BR /&gt;&lt;BR /&gt;Can it be possible with DAX? if yes please help me with the dax or give another solution.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Yashashri&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 09:43:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3247152#M119671</guid>
      <dc:creator>YASHASHRI</dc:creator>
      <dc:date>2023-05-22T09:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET TWO OPTION SO THAT I CAN FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3247184#M119673</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476285" data-lia-user-login="YASHASHRI" class="lia-mention lia-mention-user"&gt;YASHASHRI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Slicer table is a disconnected table inserted manually that has two values ("TOTAL", "STAGE&amp;nbsp;@2")&lt;BR /&gt;Then to sum a column for example you can use the following DAX&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Value =
IF (
    SELECTEDVALUE ( SlicerTable[Option] ) = "STAGE2",
    CALCULATE ( SUM ( 'Table'[Column] ), 'Table'[Stage] = 2 ),
    SUM ( 'Table'[Column] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 May 2023 09:51:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3247184#M119673</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-22T09:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET TWO OPTION SO THAT I CAN FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3250150#M119891</link>
      <description>&lt;P&gt;Not giving me the result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 05:21:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3250150#M119891</guid>
      <dc:creator>YASHASHRI</dc:creator>
      <dc:date>2023-05-24T05:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET TWO OPTION SO THAT I CAN FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3250153#M119892</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476285" data-lia-user-login="YASHASHRI" class="lia-mention lia-mention-user"&gt;YASHASHRI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you please provide a screenshot of the results and include the dax code that you have used?&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 05:26:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3250153#M119892</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-24T05:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET TWO OPTION SO THAT I CAN FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3250273#M119904</link>
      <description>&lt;LI-CODE lang="markup"&gt;The sum of all stages is:
Total = CALCULATE(SUM(Table1[Stage]), Table1[Stage])
To get the sum of only Stage 2, you can use the IF statement:
Total = CALCULATE(SUM(Table1[Stage]), IF(Table1[Stage] = "Stage 2", 1, 0))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 May 2023 06:37:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3250273#M119904</guid>
      <dc:creator>Mrxiang</dc:creator>
      <dc:date>2023-05-24T06:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET TWO OPTION SO THAT I CAN FILTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3254386#M120139</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476285" data-lia-user-login="YASHASHRI" class="lia-mention lia-mention-user"&gt;YASHASHRI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could create a table with "TOTAL" and "STAGE 2" by entering data.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then use the SWITCH function to filter.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = SWITCH(SELECTEDVALUE('Table (2)'[SLICER]),"TOTAL",SUMX(ALL('Table'),[STAGES]),"STAGE 2","STAGE 2")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 03:13:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-TWO-OPTION-SO-THAT-I-CAN-FILTER/m-p/3254386#M120139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-26T03:13:34Z</dc:date>
    </item>
  </channel>
</rss>

