<?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 dax not working on report view in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-not-working-on-report-view/m-p/3966990#M153932</link>
    <description>&lt;P&gt;Dear experts i need help, i dont understand why i cant use topn,filter,summarize function in dax , here is an example&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TOPN&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;Car_sales&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Car_sales&lt;/SPAN&gt;&lt;SPAN&gt;[Horsepower]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DESC)),its a very simple formula aims to give top values based on horsepower column of the&amp;nbsp;Car_sales table the problem that im facing is its working in the Dax query view but not in the report view , its showing me this message "&amp;nbsp;The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value. " why itsonly&lt;img /&gt;&lt;img /&gt; working on the query view&amp;nbsp;&lt;BR /&gt;another example&amp;nbsp;Top10Cars =&lt;BR /&gt;TOPN (10,SUMMARIZE ('Car_sales','Car_sales'[Manufacturer], 'Car_sales'[Model],"TotalSales", SUM ( 'Car_sales'[Sales_in_thousands] )),[TotalSales], DESC) this one aims to get the top 10 car manufatures and the model based on the sales again i can see the result in the query view but its showing this "&amp;nbsp;The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value. "&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 02 Jun 2024 20:41:09 GMT</pubDate>
    <dc:creator>soumit</dc:creator>
    <dc:date>2024-06-02T20:41:09Z</dc:date>
    <item>
      <title>dax not working on report view</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-not-working-on-report-view/m-p/3966990#M153932</link>
      <description>&lt;P&gt;Dear experts i need help, i dont understand why i cant use topn,filter,summarize function in dax , here is an example&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TOPN&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;Car_sales&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Car_sales&lt;/SPAN&gt;&lt;SPAN&gt;[Horsepower]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DESC)),its a very simple formula aims to give top values based on horsepower column of the&amp;nbsp;Car_sales table the problem that im facing is its working in the Dax query view but not in the report view , its showing me this message "&amp;nbsp;The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value. " why itsonly&lt;img /&gt;&lt;img /&gt; working on the query view&amp;nbsp;&lt;BR /&gt;another example&amp;nbsp;Top10Cars =&lt;BR /&gt;TOPN (10,SUMMARIZE ('Car_sales','Car_sales'[Manufacturer], 'Car_sales'[Model],"TotalSales", SUM ( 'Car_sales'[Sales_in_thousands] )),[TotalSales], DESC) this one aims to get the top 10 car manufatures and the model based on the sales again i can see the result in the query view but its showing this "&amp;nbsp;The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value. "&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 02 Jun 2024 20:41:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-not-working-on-report-view/m-p/3966990#M153932</guid>
      <dc:creator>soumit</dc:creator>
      <dc:date>2024-06-02T20:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: dax not working on report view</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-not-working-on-report-view/m-p/3969180#M153936</link>
      <description>&lt;P&gt;Your DAX query returns a table, so you cannot use it as a measure, since a measure should return a scalar value.&lt;BR /&gt;You&amp;nbsp;&lt;EM&gt;could&lt;/EM&gt; use it as a (calculated) table, but note that the query would be exdcuted when (loading) processing the model; so it will not take into account any slicers or filters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, you could also add a TOP N filter to a visual&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 16:25:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-not-working-on-report-view/m-p/3969180#M153936</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-06-03T16:25:44Z</dc:date>
    </item>
  </channel>
</rss>

