<?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: Slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2459788#M66526</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I have two duplicate datasets. One for "orders not put through" one for "orders put through".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;On both of these tables there is a column for Week 1-52. The relationships I currently have are between user ID and Department.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;currently, my slicer for week when applied only works for one data set and not the other. I've tried all sorts to try and resolve (including amending relationships) but nothing worked, I suspect it's fairly simple. But just cannot figure it out.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Apr 2022 14:30:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-16T14:30:59Z</dc:date>
    <item>
      <title>Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2459768#M66521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to set up a slicer which filters the week number across two data sets combined into one report.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have orders put through counted by username and orders not put through counted by username.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;when I go to filter by week it only filters one at a time.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;does anyone know the soloution for this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 13:05:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2459768#M66521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-16T13:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2459784#M66525</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the week column from which table? What is the relationship between the two tables? Do you have a date table?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 14:15:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2459784#M66525</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-16T14:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2459788#M66526</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I have two duplicate datasets. One for "orders not put through" one for "orders put through".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;On both of these tables there is a column for Week 1-52. The relationships I currently have are between user ID and Department.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;currently, my slicer for week when applied only works for one data set and not the other. I've tried all sorts to try and resolve (including amending relationships) but nothing worked, I suspect it's fairly simple. But just cannot figure it out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 14:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2459788#M66526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-16T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2459789#M66527</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can share a screenshot of your visual? Also you did not answer one of the questions, the week column in the slicer belongs to which table?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 14:39:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2459789#M66527</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-16T14:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2461041#M66619</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Sorry about that. I have multiple kpi based tables E.G orders put through/not put through via department, and put through and not put through by individual Co-Worker, that can all be filtered by departmet (which works) and then can be filtered by week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i filter via week it will only filter one data set E.G. orders not put through and then orders put through will not have responded to the slicer. Both data sets have an existing week column in. I have tried to ammend the relationships between tables (as I thought this was the issue) but this is the error which i get.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 07:30:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2461041#M66619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-18T07:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2461084#M66620</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;I understand your frustration and sorry for asking many questions. I know it is sometimes more difficult to express and explain a problem than solving.&lt;BR /&gt;The reason for receiving such error is that there is already a relationship between both tables. Can you please confirm which columns are involved in this relationship?&lt;BR /&gt;In general for such cases you have to have a Date table the&amp;nbsp;filters both tables and then use this table in slicing and dicing in your visuals. Please share some&amp;nbsp;sample data of the two tables and advise the code of both measure in order to simulate&amp;nbsp;the situation&amp;nbsp;to achieve&amp;nbsp;a proper solution. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 07:49:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2461084#M66620</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-18T07:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2463021#M66779</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;
&lt;P&gt;I created some data:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;orders not put through：&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;orders put through：&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can try to create a calendar table, use the week of the calendar table as a slicer, and create a measure to mark it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = CALENDAR(MIN('orders not put through'[date1]),MAX('orders put through'[date2]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag = 
VAR _select=SELECTEDVALUE('Table'[WEEK])
return
IF(
    WEEKNUM(MAX('orders not put through'[date1]),1)=_select || WEEKNUM(MAX('orders put through'[date2]),1)=_select,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Put [Flag] in the Filter of the two visual objects and set is =1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4. Result:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please click here for the &lt;A href="https://m365x668238-my.sharepoint.com/:u:/g/personal/yangliu_m365x668238_onmicrosoft_com/Ed0Fja-wE2hOlb_NPTsAJcsB0l4xOBZ8_Jdt_GSb0FcNjg?e=KWKFlX" target="_self"&gt;pbix&lt;/A&gt; file&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide your pbix without privacy information and desired output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Liu Yang&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 08:49:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer/m-p/2463021#M66779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-19T08:49:44Z</dc:date>
    </item>
  </channel>
</rss>

