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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
aflintdepm
Helper III
Helper III

Can't use a column in a variable

I am trying to create a measure using a variable.  I want the variable to take the value from a column in the same table, so relationship shouldn't be an issue.

 

When I try to create the variable, the suggested column list suggests almost every column EXCEPT the column I want to use.  If I manually type out the column (with table) it is not recognized.  The column is a non-unique number value, but I need it to calculate per row.  

 

aflintdepm_0-1734021758214.png

 

What are the steps to take to figure out why I can't access this column as a variable?  Most other columns in this table are available to me

aflintdepm_1-1734021817887.png

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

measures need aggregations like MAX() or SUM()

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

measures need aggregations like MAX() or SUM()

I've learned that, but I was only trying to write a variable- any suggestion for why it won't let me use a number column as a variable input?

the same rules apply to variables inside a measure.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.