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
Buenos días, me gustaria que me proporcianaraís una formula para obtener el valor a devolver, es decir sin en la columna porcentaje continente el valor% me devuelva el valor anterior al% de lo contario que me devuelva blanco.
porcentaje | valor a devolver |
30d | blanco |
15d | blanco |
5d | blanco |
15d | blanco |
15d2% | 2% |
10d2% | 2% |
gRACIAS.
Solved! Go to Solution.
No @Syndicate_Admin ,
Puede crear una columna calculada como se indica a continuación:
amount to be returned =
VAR _len =
LEN ( 'Table'[percentage] )
VAR _pplace =
IFERROR ( SEARCH ( "%", 'Table'[percentage], 1, 0 ), 0 )
VAR _dplace =
IFERROR ( SEARCH ( "d", 'Table'[percentage], 1, 0 ), 0 )
RETURN
IF (
_pplace > 0,
MID ( 'Table'[percentage], _dplace + 1, _pplace - _dplace ),
"white"
)
Saludos
No @Syndicate_Admin ,
Puede crear una columna calculada como se indica a continuación:
amount to be returned =
VAR _len =
LEN ( 'Table'[percentage] )
VAR _pplace =
IFERROR ( SEARCH ( "%", 'Table'[percentage], 1, 0 ), 0 )
VAR _dplace =
IFERROR ( SEARCH ( "d", 'Table'[percentage], 1, 0 ), 0 )
RETURN
IF (
_pplace > 0,
MID ( 'Table'[percentage], _dplace + 1, _pplace - _dplace ),
"white"
)
Saludos
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.