Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
HI,
I am using a calculated var table in a measure and need to call a column from a calculated var table to do some calculation.
How do I do that?
Solved! Go to Solution.
Hi @bml123 ,
You will need to define a name for this calculated column.
For example:
var table = selectedcolumns('table',"columnname",[column])
or
var table = addcolumns('table',"columnname",[column])
or
var table = SUMMARIZE ('table', [groupBy_columnName], "columnname", [column])
In above cases you could directly call the columnname.
Best Regards,
Jay
Hi @bml123 ,
You will need to define a name for this calculated column.
For example:
var table = selectedcolumns('table',"columnname",[column])
or
var table = addcolumns('table',"columnname",[column])
or
var table = SUMMARIZE ('table', [groupBy_columnName], "columnname", [column])
In above cases you could directly call the columnname.
Best Regards,
Jay
@bml123 , Not very clear, refer to example
measure =
var _tab = summarize(Table, Table[Employee], "_1", [M1])
return
Countx(Values(_tab), [Employee])
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 110 | |
| 59 | |
| 39 | |
| 32 |