<?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 Two different filters based on Row value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3654735#M141589</link>
    <description>&lt;P&gt;I have these two table visuals that show the correct data and come from the same table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to have User PICK show up with the other in the same table.&lt;/P&gt;&lt;P&gt;The problem is the top table has different filters applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the filters for the top table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here are the filters for the bottom table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I combine bothe these tables with different filters?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 17:15:19 GMT</pubDate>
    <dc:creator>bignadad</dc:creator>
    <dc:date>2024-01-23T17:15:19Z</dc:date>
    <item>
      <title>Two different filters based on Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3654735#M141589</link>
      <description>&lt;P&gt;I have these two table visuals that show the correct data and come from the same table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to have User PICK show up with the other in the same table.&lt;/P&gt;&lt;P&gt;The problem is the top table has different filters applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the filters for the top table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here are the filters for the bottom table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I combine bothe these tables with different filters?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 17:15:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3654735#M141589</guid>
      <dc:creator>bignadad</dc:creator>
      <dc:date>2024-01-23T17:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Two different filters based on Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3655628#M141630</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;To combine two tables with different filters in a Power BI report, you can use the "Edit Interactions" feature and create a relationship between the tables. Follow these steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Edit Interactions:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select the visual (table) that you want to interact with the other visual.&lt;/LI&gt;&lt;LI&gt;Go to the "Format" pane (on the right side).&lt;/LI&gt;&lt;LI&gt;Click on "Edit interactions" (paint roller icon).&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Define Relationships:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select the visual you want to interact with.&lt;/LI&gt;&lt;LI&gt;Go to the "Model" view.&lt;/LI&gt;&lt;LI&gt;Ensure that you have a common field between the two tables (e.g., a unique identifier) on which you can create a relationship.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Relationship:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Drag the common field from one table and drop it onto the corresponding field in the other table.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Filter Direction:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After creating the relationship, you can set the filter direction. In your case, it seems like you want the "User PICK" table to show data based on the filters applied to the top table.&lt;/LI&gt;&lt;LI&gt;To set the filter direction, click on the relationship line between the tables and choose the appropriate filter direction.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Review:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go back to the report view and verify that the tables now interact with each other based on the defined relationship.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;By setting up relationships and using the "Edit Interactions" feature, you can control how visuals in Power BI interact with each other. This allows you to have different filters on different visuals while still ensuring that they work together when needed.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Jan 2024 05:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3655628#M141630</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-01-24T05:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Two different filters based on Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3655712#M141637</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="661390" data-lia-user-login="bignadad" class="lia-mention lia-mention-user"&gt;bignadad&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to create a MEASURE to categorize your [USER] column using the &lt;A href="IF%20function%20(DAX)%20-%20DAX%20|%20Microsoft%20Learn" target="_blank"&gt;IF&lt;/A&gt; function or the &lt;A href="SWITCH%20function%20(DAX)%20-%20DAX%20|%20Microsoft%20Learn" target="_blank"&gt;Switch&lt;/A&gt; function.&lt;/P&gt;
&lt;P&gt;Then use the &lt;A href="FILTER%20function%20(DAX)%20-%20DAX%20|%20Microsoft%20Learn" target="_blank"&gt;Filter&lt;/A&gt; function to filter each.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Links of other DAX functions you may use:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdax%2Fdax-overview&amp;amp;data=05%7C02%7Cv-zhengdxu%40microsoft.com%7C957aa2cf3d27428c3ade08dc1ca0a850%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638416723554707339%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=giRluVMVQEIedJZk%2BYlAeS3KhbhJcTN2RYsvh5PVn3c%3D&amp;amp;reserved=0" target="_blank"&gt;DAX overview - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, I create a set of sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = IF(
            SELECTEDVALUE('Table'[user])="C",
            MAX('Table'[Column1]),
//when [user] = C, the matrix show [column1]
            MAX('Table'[Column2])
//If [user] not equal to C, the matrix show [column2]
            )&lt;/LI-CODE&gt;
&lt;P&gt;The result is as follow:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also try the field parameter.&lt;/P&gt;
&lt;P&gt;Fields parameter is a feature that allows users to choose which column to use to slice values in a Power BI visual.&lt;/P&gt;
&lt;P&gt;For example, by creating a fields parameter you can very easily build a report where you can slice by Brand and Category, as in the following figure.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Links of how to use field parameter:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpower-bi%2Fcreate-reports%2Fpower-bi-field-parameters&amp;amp;data=05%7C02%7Cv-zhengdxu%40microsoft.com%7C957aa2cf3d27428c3ade08dc1ca0a850%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638416723554714910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=ugT4lhSfSReRB0AYnuVan5TUKuSwf6NyuGyu6C7Dp2k%3D&amp;amp;reserved=0" target="_blank"&gt;Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn [4125-0344-ac6-31a1]&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.sqlbi.com%2Farticles%2Ffields-parameters-in-power-bi%2F&amp;amp;data=05%7C02%7Cv-zhengdxu%40microsoft.com%7C957aa2cf3d27428c3ade08dc1ca0a850%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638416723554722488%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=DlpeDWIs3v57B44EpMEhK4FyojYKXyB59jVeuG%2BM56M%3D&amp;amp;reserved=0" target="_blank"&gt;Fields parameters in Power BI - SQLBI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 05:55:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3655712#M141637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-24T05:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Two different filters based on Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3657054#M141678</link>
      <description>&lt;P&gt;I am trying to implement the measure with if then you suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this buts its not working&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(warehouseEntry[user])=&lt;/SPAN&gt;&lt;SPAN&gt;"PICK"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(warehouseEntry,warehouseEntry[entryType] = &lt;/SPAN&gt;&lt;SPAN&gt;"Negative Adjmt."&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(warehouseEntry,warehouseEntry[entryType] = &lt;/SPAN&gt;&lt;SPAN&gt;"SHIP"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I didn't include it above but there are multiple conditions that need to be met.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If user = PICK then entryType&amp;nbsp;= "Negative Adjmt." and Zone Code = "SHIP"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Bin Code = SHIP|Consumption and entryType = Movement.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can that be implemented in your suggestion?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Jan 2024 12:40:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3657054#M141678</guid>
      <dc:creator>bignadad</dc:creator>
      <dc:date>2024-01-24T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Two different filters based on Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3657060#M141679</link>
      <description>&lt;P&gt;I am not needing to filter data between two different tables.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 12:43:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3657060#M141679</guid>
      <dc:creator>bignadad</dc:creator>
      <dc:date>2024-01-24T12:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Two different filters based on Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3657236#M141689</link>
      <description>&lt;P&gt;You haven't supplied much information on your model, so it's impossible to guess the correct table names or the measure that produces the current numbers, but I suggest to remove the current filters on the visual and create a measure like this:&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;combined_measure = 
CALCULATE([base_measure], dim1[bincode] IN {"ASSEMBLY CONS","CONSUMPTION", "SHIP"}, dim2[entryType]="Movement")
+ CALCULATE([base_measure], dim3[User]="PICK", dim2[entryType]="Negative Adjmt", dim4[zoneCode]="SHIP") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 13:33:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3657236#M141689</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-01-24T13:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Two different filters based on Row value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3657729#M141724</link>
      <description>&lt;P&gt;I don't need to combine the values based on the filter. I need to assign them to different users as the origianl question suggests&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 17:07:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Two-different-filters-based-on-Row-value/m-p/3657729#M141724</guid>
      <dc:creator>bignadad</dc:creator>
      <dc:date>2024-01-24T17:07:47Z</dc:date>
    </item>
  </channel>
</rss>

