<?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: 5 arguments were passed to a function which expects between 2 and 4 in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358469#M15917</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="246687" data-lia-user-login="johnlhaase" class="lia-mention lia-mention-user"&gt;johnlhaase&lt;/a&gt;&amp;nbsp;Can you post the details of the error. Also, the M code you are using. Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 13:45:15 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-09-09T13:45:15Z</dc:date>
    <item>
      <title>5 arguments were passed to a function which expects between 2 and 4</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358466#M15916</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get my report refreshed and I keep getting this error while using Gateway. I went back into my query to see if there is a questionable reference to a table and I cannot find anything. Part of the issue is I am not sure what I need to look for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 13:43:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358466#M15916</guid>
      <dc:creator>johnlhaase</dc:creator>
      <dc:date>2020-09-09T13:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: 5 arguments were passed to a function which expects between 2 and 4</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358469#M15917</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="246687" data-lia-user-login="johnlhaase" class="lia-mention lia-mention-user"&gt;johnlhaase&lt;/a&gt;&amp;nbsp;Can you post the details of the error. Also, the M code you are using. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 13:45:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358469#M15917</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-09T13:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: 5 arguments were passed to a function which expects between 2 and 4</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358487#M15918</link>
      <description>&lt;P&gt;Below is the Data Source Error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have this DAX Column&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DateRange = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF ( &lt;/SPAN&gt;&lt;SPAN&gt;DAY(Population[Date] ) = DAY(TODAY()),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Current Date", &lt;/SPAN&gt;&lt;SPAN&gt;DAY(TODAY()-DAY(Population[Date])) &amp;amp; " Day(s) Ago"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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;&lt;SPAN&gt;{"error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","pbi.error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"-2147467259"}},{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"5 arguments were passed to a function which expects between 2 and 4."}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}},{"code":"Microsoft.Data.Mashup.ValueError.Arguments","detail":{"type":1,"value":"{Table.FromRecords({}), \"Index\", 1, 1, number}"}},{"code":"Microsoft.Data.Mashup.ValueError.Reason","detail":{"type":1,"value":"Expression.Error"}}],"exceptionCulprit":1}}} Table: Crew Flights Information.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 13:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358487#M15918</guid>
      <dc:creator>johnlhaase</dc:creator>
      <dc:date>2020-09-09T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: 5 arguments were passed to a function which expects between 2 and 4</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358502#M15919</link>
      <description>&lt;P&gt;&amp;nbsp;Greg below is the MCode from the main table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Source = Excel.Workbook(File.Contents("C:\Users\jhaase\OneDrive - kalittaair.com\BI Reports\2020 Dates.xlsx"), null, true),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"2020 Dates_Sheet" = Source{[Item="2020 Dates",Kind="Sheet"]}[Data],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Promoted Headers" = Table.PromoteHeaders(#"2020 Dates_Sheet", [PromoteAllScalars=true]),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Start of Month", type date}, {"Date", type date}}),&lt;BR /&gt;#"Added Custom1" = Table.AddColumn(#"Changed Type", "Today's date", each DateTime.Date(DateTime.LocalNow())),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Extracted Date" = Table.TransformColumns(#"Added Custom1",{}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Added FutureDates" = Table.AddColumn(#"Extracted Date", "FutureDates", each if [Date]&amp;gt;[#"Today's date"] then "Future" else "Past"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Filtered Future" = Table.SelectRows(#"Added FutureDates", each ([FutureDates] = "Past")),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Removed Columns1" = Table.RemoveColumns(#"Filtered Future",{"FutureDates"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Merged Queries" = Table.NestedJoin(#"Removed Columns1", {"Start of Month"}, #"12-Month CrewCount", {"Months"}, "Crew Count Report", JoinKind.LeftOuter),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Expanded Crew Count Report" = Table.ExpandTableColumn(#"Merged Queries", "Crew Count Report", {"EmpID", "DisplayName", "Fleet"}, {"EmpID", "DisplayName", "Fleet"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Merged Queries1" = Table.NestedJoin(#"Expanded Crew Count Report", {"Date", "EmpID"}, #"Rotation Flag Report", {"Date", "EMPNumber"}, "Rotation Flag Report", JoinKind.LeftOuter),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Expanded Rotation Flag Report" = Table.ExpandTableColumn(#"Merged Queries1", "Rotation Flag Report", {"PayType", "Rotation"}, {"PayType", "Rotation"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Filtered On ShiftOn Rotations" = Table.SelectRows(#"Expanded Rotation Flag Report", each ([Rotation] = "On" or [Rotation] = "Shift On")),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Merged Queries2" = Table.NestedJoin(#"Filtered On ShiftOn Rotations", {"Date", "EmpID"}, #"Crew Flights Information", {"Date", "EMP_ID"}, "Crew Flights Information", JoinKind.LeftOuter),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Expanded Crew Flights Information" = Table.ExpandTableColumn(#"Merged Queries2", "Crew Flights Information", {"Flight"}, {"Flight"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Merged Queries3" = Table.NestedJoin(#"Expanded Crew Flights Information", {"Date", "EmpID"}, #"Crew Scheduling Detail-Training", {"Date", "EmpID"}, "Crew Scheduling Detail-Training", JoinKind.LeftOuter),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Expanded Crew Scheduling Detail-Training" = Table.ExpandTableColumn(#"Merged Queries3", "Crew Scheduling Detail-Training", {"Code"}, {"Code"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Renamed Columns" = Table.RenameColumns(#"Expanded Crew Scheduling Detail-Training",{{"Code", "DutyCode"}}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Merged Queries4" = Table.NestedJoin(#"Renamed Columns", {"Date", "EmpID"}, #"Crew Activity Report-Astro", {"Date", "EMPID"}, "Jul20 Crew Activity Report-Astro", JoinKind.LeftOuter),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Expanded Jul20 Crew Activity Report-Astro" = Table.ExpandTableColumn(#"Merged Queries4", "Jul20 Crew Activity Report-Astro", {"Code"}, {"Code"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Renamed Columns1" = Table.RenameColumns(#"Expanded Jul20 Crew Activity Report-Astro",{{"Code", "Activity Code"}}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Added Assignment Code" = Table.AddColumn(#"Renamed Columns1", "Assignment", each if [Flight] &amp;lt;&amp;gt; null then 27 else if [DutyCode] &amp;lt;&amp;gt; null then [DutyCode] else if [Activity Code] &amp;lt;&amp;gt; null then [Activity Code] else "No Assignment"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Grouped Rows" = Table.Group(#"Added Assignment Code", {"Start of Month", "Date", "Today's date", "EmpID", "DisplayName", "Fleet", "PayType", "Rotation"}, {{"Assignment", each List.Max([Assignment]), type number}, {"Count", each Table.RowCount(_), Int64.Type}}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Merged Queries5" = Table.NestedJoin(#"Grouped Rows", {"Assignment"}, AssignmentCodes, {"Index"}, "AssignmentCodes", JoinKind.LeftOuter),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Expanded AssignmentCodes1" = Table.ExpandTableColumn(#"Merged Queries5", "AssignmentCodes", {"Assignment - Copy"}, {"Assignment - Copy"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Removed Columns" = Table.RemoveColumns(#"Expanded AssignmentCodes1",{"Assignment"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Removed Duplicates" = Table.Distinct(#"Removed Columns"),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Renamed Columns3" = Table.RenameColumns(#"Removed Duplicates",{{"Assignment - Copy", "Assignment"}}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Filtered Rows1" = Table.SelectRows(#"Renamed Columns3", each ([PayType] &amp;lt;&amp;gt; "CQ Pay" and [PayType] &amp;lt;&amp;gt; "Sim Instructor Pay" and [PayType] &amp;lt;&amp;gt; "Transition/Upgrade Training Pay" and [PayType] &amp;lt;&amp;gt; "Vacation Pay")),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Replaced Value" = Table.ReplaceValue(#"Filtered Rows1",null,"Rest or Unassigned",Replacer.ReplaceValue,{"Assignment"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Sorted Rows" = Table.Sort(#"Replaced Value",{{"Date", Order.Descending}}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Reordered Columns" = Table.ReorderColumns(#"Sorted Rows",{"Start of Month", "Today's date", "Date", "EmpID", "DisplayName", "Fleet", "PayType", "Rotation", "Count", "Assignment"}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Changed Type1" = Table.TransformColumnTypes(#"Reordered Columns",{{"Today's date", type date}}),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Added Custom" = Table.AddColumn(#"Changed Type1", "Days From Today", each [#"Today's date"]-[Date]),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Changed Type2" = Table.TransformColumnTypes(#"Added Custom",{{"Days From Today", Int64.Type}})&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 13:59:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358502#M15919</guid>
      <dc:creator>johnlhaase</dc:creator>
      <dc:date>2020-09-09T13:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: 5 arguments were passed to a function which expects between 2 and 4</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358561#M15920</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="246687" data-lia-user-login="johnlhaase" class="lia-mention lia-mention-user"&gt;johnlhaase&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DateRange = 
  IF( 
    DAY(Population[Date] ) = DAY(TODAY()),
    "Current Date", 
    DAY(TODAY())-DAY(Population[Date]) &amp;amp; " Day(s) Ago"
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Sep 2020 14:19:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358561#M15920</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-09T14:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: 5 arguments were passed to a function which expects between 2 and 4</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358739#M15923</link>
      <description>&lt;P&gt;I do not see you solution. Did you send one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 15:18:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1358739#M15923</guid>
      <dc:creator>johnlhaase</dc:creator>
      <dc:date>2020-09-09T15:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: 5 arguments were passed to a function which expects between 2 and 4</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1361493#M15947</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a significant amount of time trying to find the error. I went back and re-read the meassage which refered to the table it was having an issue with. Although I check this table several time it ended up being the culprit. The table is imported as a CSV with several blank rows before the header. &lt;U&gt;I had slipped in a data change to a column prior to "Using First Row as Header" which casued the issue.&lt;/U&gt; Always remember to read the error message closely since its the clue to the problem!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John Haase&lt;/P&gt;&lt;P&gt;aka Johnny X&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:51:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-between-2/m-p/1361493#M15947</guid>
      <dc:creator>johnlhaase</dc:creator>
      <dc:date>2020-09-10T12:51:16Z</dc:date>
    </item>
  </channel>
</rss>

