Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
¿Hay alguna alternativa de NATURALLEFTOUTERJOIN en una tabla temporal ... si es así, desea probar el rendimiento imapct con la alternativa. La ayuda de ANy es apreciada !!!
LOOKUPVALUE no funcionará en una tabla temporal.
Por ejemplo, Consulta
Table =
VAR _1 = DATATABLE (
"ID", STRING,
"BU", STRING,
"YEAR", INTEGER,
"Month", INTEGER,
{
{ "BU1-2019-1", "BU-1", 2019, 1 },
{ "BU1-2019-2", "BU-1", 2019, 2 },
{ "BU1-2019-3", "BU-1", 2019, 3 }
}
)
VAR _2 = DATATABLE (
"ID", STRING,
"Actual", INTEGER,
{
{ "BU1-2019-1", 100 },
{ "BU1-2019-2", 200 },
{ "BU1-2019-3", 300 }
}
)
VAR _3 = NATURALLEFTOUTERJOIN(_1,_2)
RETURN _3
Hola @smpa01
Por favor, compruebe a continuación:
Table 3 =
VAR _1 =
DATATABLE (
"ID", STRING,
"BU", STRING,
"YEAR", INTEGER,
"Month", INTEGER,
{
{ "BU1-2019-1", "BU-1", 2019, 1 },
{ "BU1-2019-2", "BU-1", 2019, 2 },
{ "BU1-2019-3", "BU-1", 2019, 3 }
}
)
VAR _2 =
DATATABLE (
"ID", STRING,
"Actual", INTEGER,
{
{ "BU1-2019-1", 100 },
{ "BU1-2019-2", 200 },
{ "BU1-2019-3", 300 }
}
)
VAR _3 =
SELECTCOLUMNS ( _2, "ID", [ID] )
RETURN
ADDCOLUMNS (
FILTER ( _1, [ID] IN _3 ),
"Actual", VAR i = [ID] RETURN SUMX ( FILTER ( _2, [ID] = i ), [Actual] )
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.