<?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: Parameters and DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4895213#M186305</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;refer thia video.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=90h9h8gN_LE" target="_blank"&gt;https://www.youtube.com/watch?v=90h9h8gN_LE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Punith&lt;/P&gt;</description>
    <pubDate>Sun, 07 Dec 2025 18:07:27 GMT</pubDate>
    <dc:creator>Punithurs</dc:creator>
    <dc:date>2025-12-07T18:07:27Z</dc:date>
    <item>
      <title>Parameters and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888105#M186108</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is always the way it seems, I wrote some horrid clunky DAX as I was in a hurry.&amp;nbsp; This is an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CP_P6 Budgeted Units =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Resource B'&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Resource B'&lt;/SPAN&gt;&lt;SPAN&gt;[Spreadsheet Field]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Budgeted Units"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Resource B'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2025&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;))+&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rather than hard coding the dates for month end and the prior month end which are cumulatively used in about 20 DAX statements and 1 table construction query can I use parameters here?&amp;nbsp; I'm trying options but I can't seem to pick parameters up in DAX.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What am I missing or is there a better way?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 06:37:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888105#M186108</guid>
      <dc:creator>kylee_anne</dc:creator>
      <dc:date>2025-11-28T06:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888107#M186109</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="652113" data-lia-user-login="kylee_anne" class="lia-mention lia-mention-user"&gt;kylee_anne&lt;/a&gt;&amp;nbsp;, make sure you are having a date table, then you have MTD, this month last month etc using Time Intellignece&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;CP_P6 Budgeted Units = CALCULATE(SUM('Resource B'[Value]),filter( 'Resource B', 'Resource B'[Spreadsheet Field]="Budgeted Units") )&lt;BR /&gt;&lt;BR /&gt;Then have measure like&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MTD Budgeted Units =
CALCULATE(
    [CP_P6 Budgeted Units],
    DATESMTD('Date'[Date])
)

Last MTD Budgeted Units =
CALCULATE(
    [CP_P6 Budgeted Units],
    DATESMTD( DATEADD('Date'[Date], -1, MONTH) )
)

Last Month Budgeted Units =
CALCULATE(
    [CP_P6 Budgeted Units],
    PREVIOUSMONTH('Date'[Date])
)

Next Month Budgeted Units =
CALCULATE(
    [CP_P6 Budgeted Units],
    NEXTMONTH('Date'[Date])
)

This Month Budgeted Units =
CALCULATE(
    [CP_P6 Budgeted Units],
    DATESMTD( ENDOFMONTH('Date'[Date]) )
)

Last MTD (Complete) Budgeted Units =
CALCULATE(
    [CP_P6 Budgeted Units],
    DATESMTD( ENDOFMONTH( DATEADD('Date'[Date], -1, MONTH) ) )
)

Previous Month Budgeted Units =
CALCULATE(
    [CP_P6 Budgeted Units],
    PREVIOUSMONTH('Date'[Date])
)

Last Year Last Month Budgeted Units =
CALCULATE(
    [CP_P6 Budgeted Units],
    DATESMTD(
        DATEADD('Date'[Date], -1 * MONTH(TODAY()), MONTH)
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 06:42:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888107#M186109</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2025-11-28T06:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888111#M186111</link>
      <description>&lt;P&gt;Is it not possible to just use parameters?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 06:45:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888111#M186111</guid>
      <dc:creator>kylee_anne</dc:creator>
      <dc:date>2025-11-28T06:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888122#M186112</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="652113" data-lia-user-login="kylee_anne" class="lia-mention lia-mention-user"&gt;kylee_anne&lt;/a&gt;&amp;nbsp;, Parameter means slicer here. If you are calling URL you can pass the parameters. You can reduce measures using Calculation groups&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Service URL, when you call a report-&lt;A href="https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You need to have slicers or filters.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We have a dynamic M parameter for direct query-&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;We can have a calculation group to rescue measures-&amp;nbsp;Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : &lt;A href="https://youtu.be/qMNv67P8Go0" target="_blank"&gt;https://youtu.be/qMNv67P8Go0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 07:05:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888122#M186112</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2025-11-28T07:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888793#M186135</link>
      <description>&lt;P&gt;Nope I put in parameter as a field not in a slicer, created a table using it with M and then could use it in DAX.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2025 09:53:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4888793#M186135</guid>
      <dc:creator>kylee_anne</dc:creator>
      <dc:date>2025-11-29T09:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters and DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4895213#M186305</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;refer thia video.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=90h9h8gN_LE" target="_blank"&gt;https://www.youtube.com/watch?v=90h9h8gN_LE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Punith&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2025 18:07:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Parameters-and-DAX/m-p/4895213#M186305</guid>
      <dc:creator>Punithurs</dc:creator>
      <dc:date>2025-12-07T18:07:27Z</dc:date>
    </item>
  </channel>
</rss>

