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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Fcoatis
Post Patron
Post Patron

Reference a column in virtual table

Hello All,
 
I´m trying to figure out this:
 
Orders Above 8000 =
VAR tempTable =
CALCULATETABLE(
SUMMARIZE (
Sales;
sales[Order Number];
"Sales Amount";
SUMX ( Sales; Sales[Quantity] * Sales[Net Price] )
)
)
RETURN
COUNTROWS(
FILTER(
tempTable;
tempTable[Sales Amount]>=8000    -- Here is the problem!
)
)
1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Just remove the table name from the column reference:
 
...
FILTER ( tempTable; [Sales Amount]>=8000 )
...
 

Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

4 REPLIES 4
OwenAuger
Super User
Super User

Just remove the table name from the column reference:
 
...
FILTER ( tempTable; [Sales Amount]>=8000 )
...
 

Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

@OwenAuger By the way! 

How did you put the answer in this box format?

You're welcome 🙂

 

Click Insert Code on the toolbar then enter the code:image.png

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Seriously???

THANKS!!!!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.