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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Lorentzt
Frequent Visitor

Why cant i use some columns in a measure?

Hello.

 

I am having a table with the columns

ticket_id, Title, priority,

 

I am trying to create a measure to convert the priority number to a text name:

 

"SLA Priority = SWITCH([priority],1,"Minor", 2, "Average", 3, "Major", 4, "Blocker", "Missing")"

 

But when i try to chose [priority] in my expression only other measures are listed non of the columns is available to be chosen. I have encountered this problem several times in diferent tables i have and with diferent functions.

 

What am i missing? Why cant i use the column in the measure?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

You appear to be referencing a "naked column" where the SWITCH() function is expecting a measure.  That's why only measures appear in the IntelliSense.

 

use MIN(Table[Priority]) instead, that should fix it.

View solution in original post

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Lorentzt,

What @Anonymous said is right, please use the following formula, it will work.

SLA Priority =
SWITCH (
    FIRSTNONBLANK ( [priority], [priority] ),
    1, "Minor",
    2, "Average",
    3, "Major",
    4, "Blocker",
    "Missing"
)


Best Regards,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Lorentzt,

What @Anonymous said is right, please use the following formula, it will work.

SLA Priority =
SWITCH (
    FIRSTNONBLANK ( [priority], [priority] ),
    1, "Minor",
    2, "Average",
    3, "Major",
    4, "Blocker",
    "Missing"
)


Best Regards,
Angelia

Anonymous
Not applicable

You appear to be referencing a "naked column" where the SWITCH() function is expecting a measure.  That's why only measures appear in the IntelliSense.

 

use MIN(Table[Priority]) instead, that should fix it.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors