Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello!!
I have a problem with a table.
I need a measure that looks for an id of a column, in another table, and depending on the result, of one value or another. The formula is this:
=SWITCH(TRUE();[Id_bo]='252'[Id_WebAgendas];1;0)
but it gives me an error: The value of the 'Id_WebAgendas' column in table '252' cannot be determined in the current context.
el id es un numero . Es una concatenación de distintos valores para crear un id unico (fecha, numero de empleado y codigo de tarea)
Thank you in advance
Solved! Go to Solution.
Hi @carolinapm ,
If the two column values are in the same table and put into a table visual, you can use the following measure:
=
SWITCH (
TRUE ();
SELECTEDVALUE ( '252'[Id_bo] ) = SELECTEDVALUE ( '252'[Id_WebAgendas] ); 1;
0
)OR
=
IF (
SELECTEDVALUE ( '252'[Id_bo] ) = SELECTEDVALUE ( '252'[Id_WebAgendas] );
1;
0
)
If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @carolinapm ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @carolinapm ,
If the two column values are in the same table and put into a table visual, you can use the following measure:
=
SWITCH (
TRUE ();
SELECTEDVALUE ( '252'[Id_bo] ) = SELECTEDVALUE ( '252'[Id_WebAgendas] ); 1;
0
)OR
=
IF (
SELECTEDVALUE ( '252'[Id_bo] ) = SELECTEDVALUE ( '252'[Id_WebAgendas] );
1;
0
)
If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |