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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.