<?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: Need HELP with DAX please! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2336445#M58873</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be a little difficult if your model involves slicers.&amp;nbsp;&lt;BR /&gt;You are using a calculated column instead of a measure, which will cause the result to be static(not recalculated based on your current filter context). If you use measure instead, the result will be correct, but you won't be able to apply it to the 'Axis' on the bar chart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 09:30:21 GMT</pubDate>
    <dc:creator>v-easonf-msft</dc:creator>
    <dc:date>2022-02-14T09:30:21Z</dc:date>
    <item>
      <title>Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2328324#M58398</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a complex request to be able to select a sample of data for auditing based on user-selected dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to be able to do is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Take the Date diff between the User-selected date and “Referral date”&lt;/LI&gt;&lt;LI&gt;Calculates the weeks based on the step1. I.e. Total Days/7&lt;/LI&gt;&lt;LI&gt;I need to Group step 2 to create a Week Range. So if the week between 0 &amp;amp;&amp;amp; 1 then ‘0-1 Weeks’, Weeks between 1 &amp;amp;&amp;amp; 2 then ‘’1-2 Weeks etc..&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am particularly struggling around Step 3, which I am trying to do it in a column as I would need this in to show the total customers by Weeks Range a clustered chart.&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see above that Total Days from the selected date is working which is taking the date diff from the clockstartdate and User-selected date. In Weeks = Total Days/7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to create a Column that’s based on the “In weeks” measure to show this is ‘0-1 Weeks’ range ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 13:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2328324#M58398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-09T13:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2328333#M58399</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure =&lt;/P&gt;
&lt;P&gt;var _min = minx(allselected(Date),Date[Date])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;Averagex(Table, datediff(Table[clock Start date], _min, day) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure Week=&lt;/P&gt;
&lt;P&gt;var _min = minx(allselected(Date),Date[Date])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;Averagex(Table, datediff(Table[clock Start date], _min, day)/7 )&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 13:26:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2328333#M58399</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-09T13:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2328347#M58402</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;thank you for your quick response. So your suggestion works fine in Measure. Is it possible to Group the Measure week into a range? For example say if the Measure week is returning 0.43, then Weeks Range as 0-1 Weeks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need this in a column so that I can create a clustered Chart, total customers by Week Range - something like below.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 13:35:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2328347#M58402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-09T13:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2328687#M58414</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Any luck?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2328687#M58414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-09T16:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2329272#M58454</link>
      <description>&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;I have a first draft here:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is though what to do when it exactly hits a week (or a multiple of that, see 7 in picture). Should it then show 6-7 Weeks or 7-8 Weeks? You might be able to tweak the DAX below accordingly, but this might be a start for you:&lt;/P&gt;&lt;PRE&gt;TomsGroupingWeekTable = 
ROUNDDOWN( Table[In Weeks], 0 ) &amp;amp; "-" &amp;amp; ROUNDUP( Table[In Weeks], 0 ) &amp;amp; " Weeks"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need further assistance!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/Tom&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.tackytech.blog/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.tackytech.blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.instagram.com/tackytechtom&lt;/A&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 21:58:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2329272#M58454</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-02-09T21:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2329363#M58460</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353745" data-lia-user-login="tackytechtom" class="lia-mention lia-mention-user"&gt;tackytechtom&lt;/a&gt;&amp;nbsp;I tried to replicate your logic in a Column but it showing me the wrong range, especially when you have -ve In Weeks figures - see below. Are you able to share your PBIX file please?&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353745" data-lia-user-login="tackytechtom" class="lia-mention lia-mention-user"&gt;tackytechtom&lt;/a&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 09:30:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2329363#M58460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T09:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2330535#M58535</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353745" data-lia-user-login="tackytechtom" class="lia-mention lia-mention-user"&gt;tackytechtom&lt;/a&gt;&amp;nbsp;Well actually, I added a IF statement to deal with the -ve In Weeks figures but it didnt go well for other In Weeks figures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see below, User selected date is 31/07/2021, based on that you can see there should be a range from 0-1 Weeks, 1-2 Weeks, and 2-3 Weeks etc.. but its shows as 0-1 Weeks for all.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my Dax code&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;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353745" data-lia-user-login="tackytechtom" class="lia-mention lia-mention-user"&gt;tackytechtom&lt;/a&gt;,&amp;nbsp;not sure if I am missing something obvious, any help would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 09:45:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2330535#M58535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T09:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2332800#M58666</link>
      <description>&lt;P&gt;Any help would be much appreciated guys! thank you&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 08:46:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2332800#M58666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-11T08:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2336445#M58873</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be a little difficult if your model involves slicers.&amp;nbsp;&lt;BR /&gt;You are using a calculated column instead of a measure, which will cause the result to be static(not recalculated based on your current filter context). If you use measure instead, the result will be correct, but you won't be able to apply it to the 'Axis' on the bar chart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 09:30:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2336445#M58873</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-02-14T09:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need HELP with DAX please!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2350640#M59641</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;.I suspect this might be the case. Would be good to enable this feature in the Power BI.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 09:29:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-HELP-with-DAX-please/m-p/2350640#M59641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-21T09:29:54Z</dc:date>
    </item>
  </channel>
</rss>

