Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
soumit
New Member

dax not working on report view

Dear experts i need help, i dont understand why i cant use topn,filter,summarize function in dax , here is an example 

CALCULATETABLE(TOPN(10,Car_sales,Car_sales[Horsepower],DESC)),its a very simple formula aims to give top values based on horsepower column of the 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 " The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value. " why itsonlyScreenshot 2024-06-03 020911.pngScreenshot 2024-06-03 020945.png working on the query view 
another example Top10Cars =
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 " The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value. "
1 ACCEPTED SOLUTION
sjoerdvn
Solution Sage
Solution Sage

Your DAX query returns a table, so you cannot use it as a measure, since a measure should return a scalar value.
You could 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.

 

Instead, you could also add a TOP N filter to a visual

sjoerdvn_0-1717431937440.png

 

View solution in original post

1 REPLY 1
sjoerdvn
Solution Sage
Solution Sage

Your DAX query returns a table, so you cannot use it as a measure, since a measure should return a scalar value.
You could 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.

 

Instead, you could also add a TOP N filter to a visual

sjoerdvn_0-1717431937440.png

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.