Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
amaniramahi
Helper V
Helper V

Valor seleccionado en columna calculada

Tengo una tabla que contiene los siguientes datos de muestra (Tabla de sensores)

FechahoraRpm
15/3/20201:00 PM1000
15/3/20201:02 PM1200
15/3/20202:07 PM1300
16/3/202011:40 AM2500
16/3/202012:30 PM680

y otra tabla contiene los siguientes datos de ejemplo (tabla de viaje)

Número de viajeFechaDePara
Trip115/3/202012:00 PM1:30 PM
Trip215/3/20202:00 PM4:00 PM
Trip316/3/20208:00 AM1:00 PM

y un parámetro de qué pasaría si (Aceleración %) para los valores de RPM

lo que necesito calcular es el recuento de veces en los que RPM supera el valor seleccionado en el parámetro what-if

siempre y cuando sea la misma fecha y durante el intervalo de viaje.

cada vez que creo una columna calculada con SELECTEDVALUE no devuelve el valor correcto.

1 ACCEPTED SOLUTION

@amaniramahi bueno, no es tan sencillo, hay muchas partes móviles, basadas en lo que publicó y lo que entendí, creé un archivo de trabajo (adjunto), eche un vistazo y ajuste de acuerdo a sus requisitos.

Me gustaría💖 Cumplidos🙂 si mi solución me ayudara.👉Si puedes dedicar tiempo a publicar la pregunta, también puedes hacer esfuerzos para darle a Kudos quién ha ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

@amaniramahi tiene que utilizar selectedvalue en una medida, no en una columna calculada.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k Lo sé. es por eso que estoy preguntando si hay una manera de hacer lo que quiero sin usar SELECTEDVALUE

@amaniramahi pregunta que le preguntaría ¿por qué desea crear una columna calculada no medir?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Lo intenté, escribí la siguiente fórmula

Measure = 
var _SelectedAcc = SELECTEDVALUE('Over Revving Parameter'[Over Revving])
var _Qty = CALCULATE(COUNT(Sensors[RPM]),FILTER(Sensors,Sensors[Date]=

entonces me detengo y no puedo seleccionar la fecha en la tabla de viajes.

y supongo que no podré añadir filtros por el tiempo.

Btw, hay una tercera tabla contiene la columna de fecha y todos están relacionados.

@amaniramahi bueno, no es tan sencillo, hay muchas partes móviles, basadas en lo que publicó y lo que entendí, creé un archivo de trabajo (adjunto), eche un vistazo y ajuste de acuerdo a sus requisitos.

Me gustaría💖 Cumplidos🙂 si mi solución me ayudara.👉Si puedes dedicar tiempo a publicar la pregunta, también puedes hacer esfuerzos para darle a Kudos quién ha ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Gracias, pero el problema es la fórmula sumada a las lecturas de RPM.

Tengo 5 lecturas diferentes, y necesito comprobar para cada lectura si supera el parámetro What-if o no (no para comprobar si su suma excede).

pero hizo un pequeño retoque en su formual y funcionó!

Muchas gracias

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.