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
alicia_pbi
Employee
Employee

Referencia relativa con medida

¿Hay alguna manera de crear una referencia relativa dentro de una medida? En mi modelo actualmente necesito actualizar 6 medidas diferentes cuando llegamos a un cierto punto a lo largo del mes. Este punto del mes no es igual a un punto de fecha específico, por lo que no puedo usar la inteligencia del tiempo. También el punto en el mes se hace referencia por un mes fiscal no mes calendario. ¿Hay alguna manera de escribir la medida para hacer referencia a una tabla específica similar a una referencia relativa en Excel? Entonces podría crear otra tabla en el modelo. La única manera en que he podido pensar en ello hasta ahora es tener una lista manual de cada fecha en el año y el año futuro y darle el mes referencia numérica, pero que es una gran cantidad de mantenimiento año tras año.

¡Gracias!

7 REPLIES 7
alicia_pbi
Employee
Employee

Hola

Ha habido muchas solicitudes para mi conjunto de datos real que no estoy seguro de que sea necesario. Esta es una pregunta impulsada por el proceso. Dentro de Excel está la opción de usar la referencia de celda que puede alterar un cálculo. Me pregunto si hay alguna manera de hacerlo en Power BI.

https://support.office.com/en-us/article/Switch-between-relative-absolute-and-mixed-references-DFEC0...

https://edu.gcfglobal.org/en/excelformulas/relative-and-absolute-cell-references/1/

hola @alicia_pbi

Sí, podría obtenerlo, podría usar la función ALLxxx para borrar el contexto de fila y agregar las condiciones fijas en la fórmula.

https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept...

Si todavía tiene el problema, comparta el archivo pbix de ejemplo y la salida esperada.

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Gracias @v-lili6-msft

Desafortunadamente puede que no sea completamente comprensivo. Traté de seguir el enlace que envió y no tuve éxito en conseguir que la medida funcionara según lo esperado.

Mi fórmula original está a continuación y tengo que actualizar manualmente el Período Fiscal cada mes.

Seleccionado HC VTF á if(HASONEFILTER('Z-Fiscal_Time'[Período fiscal]),calcular(sum(EID_Table[Forecast People]),EID_Table[Categoría de tipo de personal]-"Regular"),calcular(EID_Table[Forecast People]),EID_Table[Categoría de tipo de personal]-"Regular",'Z-Fiscal_Time'[Período fiscal]-"P11 - FY20")
if(HASONEFILTER('Z-Fiscal_Time'[Período fiscal]),calcular(sum(EID_Table[Personas reales]),EID_Table[Categoría de tipo de personal],"Regular"),calcular(sum(EID_Table[Personas reales]),EID_Table[Categoría de tipo de personal],"Regular",'Z-Fiscal_Time'[Período fiscal]-"P11 - FY20"))
He creado una tabla relacionada que me gustaría poder segmentar en lugar de tener que actualizar la medida. Con esos detalles, ¿puede sin poder informarme de una forma de reemplazar el Período Fiscal?
¡Gracias!

hola @alicia_pbi

Por favor, comparta su archivo pbix de muestra y su salida esperada, que será una gran ayuda.

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lili6-msft
Community Support
Community Support

hola @alicia_pbi

Los datos de muestra y la producción esperada ayudarían enormemente.
Por favor, consulte este post sobre cómo obtener su pregunta respondida rápidamente:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

parry2k
Super User
Super User

@alicia_pbi no está seguro de lo que está tratando de lograr. puede compartir datos de muestra y resultados esperados. Lea este post para obtener su respuesta rápidamente.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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.

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.