<?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: Filter Text using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/843670#M6465</link>
    <description>&lt;P&gt;Per your requirement to do it in DAX, you should probably do something along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR __table = FILTER('Table',[Title] = "Preeti")
RETURN
SUMX(__table,[Marks])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 12:31:15 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2019-11-12T12:31:15Z</dc:date>
    <item>
      <title>Filter Text using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/843654#M6464</link>
      <description>&lt;P&gt;Hello Power BI Community Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where I can use only the Power BI DAX. In Power BI Desktop, I have a table named as &lt;STRONG&gt;Marksheet&lt;/STRONG&gt;. This table has below columns as:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Title (By default)&lt;/LI&gt;&lt;LI&gt;Subject (Choice data type)&lt;/LI&gt;&lt;LI&gt;Marks (Number data type)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;As per my requirement, I have to filter only the Title column using Measure. You can see the below screenshot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the above screenshot, I want to filter the title column using Measure formula (Not by using Slicer Filter, For your understanding purpose, I have taken Slicer filter). As my requirement, I want to view the mark sheet of each person. Let me clear you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, I want to only view the mark sheet of Preeti and after that, in the Clustered Bar Chart, it will show me all the marks of Preeti only.&lt;/P&gt;&lt;P&gt;As I am new to Power BI DAX, I don't have much knowledge about this. Can anyone suggest to me what I have to do in this case?&lt;/P&gt;&lt;P&gt;Also, You can see my sample report by clicking below link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/ldzqc2var0cjplc/Marksheet.pbix?dl=0" target="_self"&gt;Marksheet Report&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 12:15:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/843654#M6464</guid>
      <dc:creator>PreetiSahu321</dc:creator>
      <dc:date>2019-11-12T12:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Text using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/843670#M6465</link>
      <description>&lt;P&gt;Per your requirement to do it in DAX, you should probably do something along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR __table = FILTER('Table',[Title] = "Preeti")
RETURN
SUMX(__table,[Marks])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 12:31:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/843670#M6465</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2019-11-12T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Text using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/843677#M6466</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And one more thing I want to know is If I will take a text column (Basically String) instead of [Marks], then What should I use the function instead of SUMX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because when I am trying to enter a text column instead of marks, it is showing me an error as:&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;The Function SUMX can not work with values of type String&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Please, can you suggest me what I have to do?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 12:45:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/843677#M6466</guid>
      <dc:creator>PreetiSahu321</dc:creator>
      <dc:date>2019-11-12T12:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Text using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/843689#M6467</link>
      <description>&lt;P&gt;If you are returning a string, you would want to use something like MAXX or MINX instead of SUMX.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 12:57:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/843689#M6467</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2019-11-12T12:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Text using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/844493#M6483</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another table named&amp;nbsp;&lt;STRONG&gt;Report for Sales &lt;/STRONG&gt;where I have to do the same requirement as the Marksheet table&lt;STRONG&gt;. &lt;/STRONG&gt;In this &lt;STRONG&gt;Report for Sales&lt;/STRONG&gt; table, I have to filter each person's details from the Title column. You can see the below screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here, In this above screenshot, I have taken a slicer filter for your understanding purpose. As per my requirement, I want to show each person details. For example, When I will select "KEVIN", it will display only the details of KEVIN only.&lt;/P&gt;&lt;P&gt;But I want to do this thing by using Measure not by using any Filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I have used your Measure formula as you said, but it is not working for me. And one more thing I want to say is, I want to display the measure by using the Clustered bar chart like the above screenshot.&lt;/P&gt;&lt;P&gt;You can view my sample report by clicking this link: &lt;A href="https://www.dropbox.com/s/o70s0wbe734yn1n/Text%20Filter.pbix?dl=0" target="_self"&gt;Sample Report&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please, Can you suggest me what I have to do?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 06:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/844493#M6483</guid>
      <dc:creator>PreetiSahu321</dc:creator>
      <dc:date>2019-11-13T06:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Text using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/844699#M6490</link>
      <description>&lt;LI-CODE lang="markup"&gt;KevinProjectedMTDSales = CALCULATE(SUM('Report for Sales'[Projected MTD Sales_]),'Report for Sales'[Title]="KEVIN")

KevinCurrentMonthBudget = CALCULATE(SUM('Report for Sales'[Current Month Budget]),'Report for Sales'[Title]="KEVIN")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 13 Nov 2019 09:37:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/844699#M6490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-13T09:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Text using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/1798593#M37922</link>
      <description>&lt;P&gt;how would you do multiple words? IE Kevin, Jerry, Anisha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 21:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Text-using-DAX/m-p/1798593#M37922</guid>
      <dc:creator>KN_HEALT47</dc:creator>
      <dc:date>2021-04-21T21:28:00Z</dc:date>
    </item>
  </channel>
</rss>

