March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I'm trying to pull the leftmost 10 characters of the Description field, below. How would I change the below to do so? I know this should be pretty basic but I've been working on it for some time and can't figure it out.
DEFINE VAR _items =
SELECTCOLUMNS (
SUMMARIZECOLUMNS (
Items[ID],
Items[Color],
Items[Description],
FILTER (
Items,
Items[Color] = "Green"
)
),
--Assign aliases:
"ID", Items[ID],
"Color", Items[Color],
"Description", Items[Description]
)EVALUATE _Items
Solved! Go to Solution.
Hi @Anonymous
LEFT function will do
DEFINE
VAR _items =
SELECTCOLUMNS (
SUMMARIZECOLUMNS (
Items[ID],
Items[Color],
Items[Description],
FILTER ( Items, Items[Color] = "Green" )
),
--Assign aliases:
"ID", Items[ID],
"Color", Items[Color],
"Description", LEFT ( Items[Description], 10 )
)
EVALUATE
_Items
That works. Thanks!
Hi @Anonymous
LEFT function will do
DEFINE
VAR _items =
SELECTCOLUMNS (
SUMMARIZECOLUMNS (
Items[ID],
Items[Color],
Items[Description],
FILTER ( Items, Items[Color] = "Green" )
),
--Assign aliases:
"ID", Items[ID],
"Color", Items[Color],
"Description", LEFT ( Items[Description], 10 )
)
EVALUATE
_Items
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
18 | |
16 | |
13 |