Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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])
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
74 | |
71 | |
39 | |
27 | |
27 |
User | Count |
---|---|
97 | |
96 | |
58 | |
45 | |
42 |