Forum Discussion
Fcoatis
7 years agoPost 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!
)
)
- Just remove the table name from the column reference:
...
FILTER ( tempTable; [Sales Amount]>=8000 )
...
4 Replies
- OwenAugerSuper UserJust remove the table name from the column reference:
...
FILTER ( tempTable; [Sales Amount]>=8000 )
...