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
Im trying to write new mesure but trully have no idea how to do it , it should be like that :
new mesure = if column X starts with XXX and column B is empty then new mesure is queal to columns X if columnY is queal to YYY new mesure is equal to YYY
how can i write this in new mesure? help!
Solved! Go to Solution.
Hey @dudu55 ,
I guess you want that as a calculated column.
If it's as a column that should work:
new mesure column =
SWITCH(
TRUE(),
LEFT( myTable[column X], 3 ) = 'XXX' && myTable[column B] = BLANK(), myTable[columns X],
myTable[column Y] = 'YYY', 'YYY'
)
Hey @dudu55 ,
I guess you want that as a calculated column.
If it's as a column that should work:
new mesure column =
SWITCH(
TRUE(),
LEFT( myTable[column X], 3 ) = 'XXX' && myTable[column B] = BLANK(), myTable[columns X],
myTable[column Y] = 'YYY', 'YYY'
)
Hey @dudu55 ,
did my calculated column give you the result you wanted?
I'm curious if you could solve this issue 🙂
maybe you need to create a column not a measure?
could you pls provide some sample data and expected output?
Proud to be a Super User!
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 |
---|---|
134 | |
91 | |
90 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |