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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
bml123
Post Patron
Post Patron

How to call a column from calculated var table

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?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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

amitchandak
Super User
Super User

@bml123 , Not very clear, refer to example

 

measure  =

var _tab = summarize(Table, Table[Employee], "_1", [M1])

return

Countx(Values(_tab), [Employee])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.