This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
One of our Databases is really locked down, we cant create columns, only measures.
Is there anyway i can create a measure where it looks at the column called requester.
The column is made up of 3 letters or a name- if it contains just 3 letters can it return say "accounts" otherwise its "something else"?
Solved! Go to Solution.
For your reference.
Step 0: I use these data below.
Step 1: I make a measure and table below.
Please try the measure below:
Requester Type =
VAR _Requester = SELECTEDVALUE ( Table1[Requester] )
RETURN
IF (
LEN ( _Requester ) = 3,
"Accounts",
"Something Else"
)
But remember since it is a measure and not a column, it cannot be used as a legend, axis, or slicer field directly. But it can still be used as a displayed value in a table visual or as a visual-level filter.
Hi @dommyw277
Yes, we can handle it using a measure even without creating a column in Power BI. Can you try this measure
Requester Type =
VAR Req = SELECTEDVALUE('Table'[requester])
RETURN
IF(NOT ISBLANK(Req) && LEN(Req) = 3, "accounts", "something else")
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 25 | |
| 22 | |
| 21 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 42 | |
| 41 | |
| 40 | |
| 21 | |
| 20 |