<?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: paginated Report Query Editor help required. in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/paginated-Report-Query-Editor-help-required/m-p/4066081#M36181</link>
    <description>&lt;P&gt;Date is a key word in DAX. If you have a table called Date you need to quote it with single quotes.&lt;/P&gt;
&lt;P&gt;eg 'Date'[Date] instead of just Date[Date]&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 03:22:18 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2024-07-29T03:22:18Z</dc:date>
    <item>
      <title>paginated Report Query Editor help required.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/paginated-Report-Query-Editor-help-required/m-p/4065817#M36180</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have requriement in Paginated Report where I am using 4 tables to join&amp;nbsp;&lt;/P&gt;&lt;P&gt;PayItem, Projects, Date and BilledRevenueDetail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Dax Query Editor giving me this below error. please help.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE
VAR PayItemProjects =
    ADDCOLUMNS(
        SUMMARIZE(
            PayItem,
            PayItem[PayItemId],
            PayItem[PayItemNumber],
            PayItem[Description],
            PayItem[UnitofMeasureName],
            PayItem[ForecastTakeOffQuantity],
            PayItem[ForecastUnitRevenue],
            PayItem[Project_id],
            "SumForecastFinalRevenue", SUM(PayItem[ForecastFinalRevenue])
        ),
        "ProjectName", LOOKUPVALUE(Projects[ProjectName], Projects[Project_id], PayItem[Project_id])
    )

VAR BilledPayItem =
    ADDCOLUMNS(
        SUMMARIZE(
            BilledRevenueDetail,
            BilledRevenueDetail[PayItemId],
            BilledRevenueDetail[BilledDate]
        ),
        "SumBilledRevenue", CALCULATE(SUM(BilledRevenueDetail[BilledRevenue])),
        "BilledQuantity", CALCULATE(SUM(BilledRevenueDetail[BilledQuantity]))
    )

VAR DateInfo =
    SELECTCOLUMNS(
        Date,
        "BilledDate", Date[Date],
        "Year", Date[Year],
        "MonthName", Date[MonthName]
    )

VAR Result =
    NATURALINNERJOIN(
        PayItemProjects,
        BilledPayItem
    )

VAR FinalResult =
    NATURALINNERJOIN(
        Result,
        DateInfo
    )

RETURN
    SELECTCOLUMNS(
        FinalResult,
        "PayItemId", [PayItemId],
        "Project_id", [Project_id],
        "ProjectName", [ProjectName],
        "PayItemNumber", [PayItemNumber],
        "Description", [Description],
        "UnitofMeasureName", [UnitofMeasureName],
        "ForecastTakeOffQuantity", [ForecastTakeOffQuantity],
        "ForecastUnitRevenue", [ForecastUnitRevenue],
        "SumForecastFinalRevenue", [SumForecastFinalRevenue],
        "BilledQuantity", [BilledQuantity],
        "SumBilledRevenue", [SumBilledRevenue],
        "BilledDate", [BilledDate],
        "Year", [Year],
        "MonthName", [MonthName]
    )&lt;/LI-CODE&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>Mon, 29 Jul 2024 01:12:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/paginated-Report-Query-Editor-help-required/m-p/4065817#M36180</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2024-07-29T01:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: paginated Report Query Editor help required.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/paginated-Report-Query-Editor-help-required/m-p/4066081#M36181</link>
      <description>&lt;P&gt;Date is a key word in DAX. If you have a table called Date you need to quote it with single quotes.&lt;/P&gt;
&lt;P&gt;eg 'Date'[Date] instead of just Date[Date]&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 03:22:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/paginated-Report-Query-Editor-help-required/m-p/4066081#M36181</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2024-07-29T03:22:18Z</dc:date>
    </item>
  </channel>
</rss>

