Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Why I cannot do this?
EVALUATE
VAR myvirtuatable = ADDCOLUMNS(
SUMMARIZE(
FILTER('table_a',[field]=666),
'table_a'[field2],
'table_a'[field3]
),
"total", CALCULATE(sum('table_a'[value]))
)
RETURN ADDCOLUMNS(myvirtuatable,"RANK",RANKX(myvirtuatable,total,,DESC))
"cannot find this name, "total"
Solved! Go to Solution.
You can, your syntax is off just a bit though @felipefrutuoso
When you create a table using a variable, if the function can see the table (iterators can, aggregators cannot), the field name has to be wrapped in square brackets.
EVALUATE
VAR myvirtuatable =
ADDCOLUMNS(
SUMMARIZE(
FILTER(
'table_a',
[field] = 666
),
'table_a'[field2],
'table_a'[field3]
),
"total",
CALCULATE(
SUM( 'table_a'[value] )
)
)
VAR Result =
ADDCOLUMNS(
myvirtuatable,
"RANK",
RANKX(
myvirtuatable,
[total], <---- Adjustment to syntax
,
DESC
)
)
RETURN
Result
See if that works for you.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingYou can, your syntax is off just a bit though @felipefrutuoso
When you create a table using a variable, if the function can see the table (iterators can, aggregators cannot), the field name has to be wrapped in square brackets.
EVALUATE
VAR myvirtuatable =
ADDCOLUMNS(
SUMMARIZE(
FILTER(
'table_a',
[field] = 666
),
'table_a'[field2],
'table_a'[field3]
),
"total",
CALCULATE(
SUM( 'table_a'[value] )
)
)
VAR Result =
ADDCOLUMNS(
myvirtuatable,
"RANK",
RANKX(
myvirtuatable,
[total], <---- Adjustment to syntax
,
DESC
)
)
RETURN
Result
See if that works for you.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingAdvance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 8 | |
| 8 |