<?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: List of values with filter, kindly help me! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4413711#M175290</link>
    <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;To achieve your goal of filtering the Data column based on the selected category without splitting columns in Power Query (which can cause performance issues), we can use a DAX measure and a slicer with a calculated table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 1: Create a Calculated Table for Categories&lt;/STRONG&gt;&lt;BR /&gt;Generate a table with unique category values extracted from the categories column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Category_Table =
VAR AllCategories = CONCATENATEX(YourTable, YourTable[categories], ",")
VAR CategoryList =
ADDCOLUMNS(
GENERATE(
VALUES('YourTable'[categories]),
SELECTCOLUMNS(
GENERATESERIES(1, 10), -- Adjust this if you expect more than 10 items
"Position", [Value]
)
),
"Category", PATHITEM('YourTable'[categories], [Position], ",")
)
RETURN
DISTINCT(SELECTCOLUMNS(CategoryList, "Category", [Category]))
​&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;&lt;STRONG&gt;Step 2: Create a Filtered Measure&lt;/STRONG&gt;&lt;BR /&gt;We’ll create a measure to filter the Data based on the selected category.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FilteredData = 
VAR SelectedCategory = SELECTEDVALUE('Category_Table'[Category])
RETURN
IF(
    NOT ISBLANK(SelectedCategory),
    IF(
        CONTAINSSTRING(YourTable[categories], SelectedCategory),
        1,
        0
    ),
    1
)
&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;&lt;STRONG&gt;Step 3: Add Visuals&lt;/STRONG&gt;&lt;BR /&gt;Add a slicer visual with Category_Table[Category].&lt;BR /&gt;Add a table visual with YourTable[Data] and apply a filter &lt;STRONG&gt;where FilteredData = 1.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark this post as solution if it helps you. Appreciate Kudos,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 05:18:42 GMT</pubDate>
    <dc:creator>FarhanJeelani</dc:creator>
    <dc:date>2025-02-18T05:18:42Z</dc:date>
    <item>
      <title>List of values with filter, kindly help me!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4413363#M175270</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Kindly help me for filter visual.&lt;/P&gt;&lt;P&gt;I have the 'Data' column and categories columns. like below snapshot format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;we required filter, If I select&amp;nbsp;categories col of 'a' then "a" related all data shown like below snapshot.&lt;BR /&gt;If select 'b' then "b" related of all data required.&lt;/P&gt;&lt;P&gt;How to it in DAX with this?&lt;BR /&gt;Note:- In power query it is possible, by splitting muliple cols and we will do it. but have performacne impact, kindly help me to it using DAX?&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;</description>
      <pubDate>Mon, 17 Feb 2025 08:33:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4413363#M175270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-17T08:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: List of values with filter, kindly help me!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4413711#M175290</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;To achieve your goal of filtering the Data column based on the selected category without splitting columns in Power Query (which can cause performance issues), we can use a DAX measure and a slicer with a calculated table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 1: Create a Calculated Table for Categories&lt;/STRONG&gt;&lt;BR /&gt;Generate a table with unique category values extracted from the categories column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Category_Table =
VAR AllCategories = CONCATENATEX(YourTable, YourTable[categories], ",")
VAR CategoryList =
ADDCOLUMNS(
GENERATE(
VALUES('YourTable'[categories]),
SELECTCOLUMNS(
GENERATESERIES(1, 10), -- Adjust this if you expect more than 10 items
"Position", [Value]
)
),
"Category", PATHITEM('YourTable'[categories], [Position], ",")
)
RETURN
DISTINCT(SELECTCOLUMNS(CategoryList, "Category", [Category]))
​&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;&lt;STRONG&gt;Step 2: Create a Filtered Measure&lt;/STRONG&gt;&lt;BR /&gt;We’ll create a measure to filter the Data based on the selected category.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FilteredData = 
VAR SelectedCategory = SELECTEDVALUE('Category_Table'[Category])
RETURN
IF(
    NOT ISBLANK(SelectedCategory),
    IF(
        CONTAINSSTRING(YourTable[categories], SelectedCategory),
        1,
        0
    ),
    1
)
&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;&lt;STRONG&gt;Step 3: Add Visuals&lt;/STRONG&gt;&lt;BR /&gt;Add a slicer visual with Category_Table[Category].&lt;BR /&gt;Add a table visual with YourTable[Data] and apply a filter &lt;STRONG&gt;where FilteredData = 1.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark this post as solution if it helps you. Appreciate Kudos,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 05:18:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4413711#M175290</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2025-02-18T05:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: List of values with filter, kindly help me!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4413855#M175295</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="833383" data-lia-user-login="FarhanJeelani" class="lia-mention lia-mention-user"&gt;FarhanJeelani&lt;/a&gt;&amp;nbsp; - While doing STEP 1 getting this error. Kindly help me.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 13:28:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4413855#M175295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-17T13:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: List of values with filter, kindly help me!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4413956#M175298</link>
      <description>&lt;P&gt;try :&lt;/P&gt;
&lt;P&gt;Category_Table = &lt;BR /&gt;VAR AllCategories = CONCATENATEX(YourTable, YourTable[categories], ",")&lt;BR /&gt;VAR CategoryList = &lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;GENERATE(&lt;BR /&gt;VALUES('YourTable'[categories]),&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;GENERATESERIES(1, 10), -- Adjust this if you expect more than 10 items&lt;BR /&gt;"Position", [Value]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"Category", PATHITEM('YourTable'[categories], [Position], ",")&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;DISTINCT(SELECTCOLUMNS(CategoryList, "Category", [Category]))&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 13:52:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4413956#M175298</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2025-02-17T13:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: List of values with filter, kindly help me!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4415171#M175328</link>
      <description>&lt;P&gt;Thanks for the replies from&amp;nbsp;FarhanJeelani.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can follow the steps below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;1. Create a calculated table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Categories = 
DISTINCT(
    SELECTCOLUMNS(
        FILTER(
            ADDCOLUMNS(
                GENERATESERIES(1, LEN(CONCATENATEX('Table', 'Table'[categories], ","))),
                "Letter", MID(CONCATENATEX('Table', 'Table'[categories], ","), [Value], 1)
            ),
            MID(CONCATENATEX('Table', 'Table'[categories], ","), [Value], 1) &amp;lt;&amp;gt; ","
        ),
        "Category", [Letter]
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create a measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure = 
VAR _select =
    SELECTEDVALUE ( 'Categories'[Category] )
RETURN
    IF ( CONTAINSSTRING ( MAX ( 'Table'[categories] ), _select ), 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;&lt;SPAN&gt;Filter out data where the measure equals 1:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/I&gt;, then please consider&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-values-with-filter-kindly-help-me/m-p/4415171#M175328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-18T07:02:15Z</dc:date>
    </item>
  </channel>
</rss>

