<?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: How to get select column1 from table where column2 = xyz in a table variable to reuse it? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-select-column1-from-table-where-column2-xyz-in-a/m-p/2275631#M55539</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;SELECTCOLUMNS is one way to do this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Next 7 days date = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()+&lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Date"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;End result:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 10 Jan 2022 15:06:12 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2022-01-10T15:06:12Z</dc:date>
    <item>
      <title>How to get select column1 from table where column2 = xyz in a table variable to reuse it?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-select-column1-from-table-where-column2-xyz-in-a/m-p/2275616#M55536</link>
      <description>&lt;P&gt;I wanted to do achieve this “sql” code in a DAX variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Select WeekYearWeekNumber from DimDate where Date = today()+7&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can achieve it?&lt;/P&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;So far I have this code, but the last line doesn’t work because nextw is more than a column…&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var nextw =

FILTER(

            SUMMARIZE('Date','Date'[Week Year Week Number],'Date'[Date]) ,                      

                        'Date'[Date]=TODAY()+7

                         )





var NextWCS =

FILTER(

            SUMMARIZE(Staff,   Staff[K_Emp],   Staff[StaffingType],  'Date'[Week Year Week Number],   Staff[IsTmed],

                         "sumat", SUM(Staff[Hours])

                         ),                      

                        'Date'[Week Year Week Number]=nextw

                         )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 14:56:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-select-column1-from-table-where-column2-xyz-in-a/m-p/2275616#M55536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-10T14:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get select column1 from table where column2 = xyz in a table variable to reuse it?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-select-column1-from-table-where-column2-xyz-in-a/m-p/2275631#M55539</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;SELECTCOLUMNS is one way to do this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Next 7 days date = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()+&lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Date"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;End result:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Jan 2022 15:06:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-select-column1-from-table-where-column2-xyz-in-a/m-p/2275631#M55539</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-10T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get select column1 from table where column2 = xyz in a table variable to reuse it?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-select-column1-from-table-where-column2-xyz-in-a/m-p/2275662#M55543</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; what are you exactly trying to achieve? provide sample data and expected output?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 15:20:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-select-column1-from-table-where-column2-xyz-in-a/m-p/2275662#M55543</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2022-01-10T15:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get select column1 from table where column2 = xyz in a table variable to reuse it?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-select-column1-from-table-where-column2-xyz-in-a/m-p/2275998#M55559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will give you a scalar that you can then use in NextWCS&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Nextw = 
CALCULATE(
    SELECTEDVALUE('Date'[Week Year Week Number]),
    'Date'[Date] = TODAY() + 7
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Jan 2022 18:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-select-column1-from-table-where-column2-xyz-in-a/m-p/2275998#M55559</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-01-10T18:03:32Z</dc:date>
    </item>
  </channel>
</rss>

