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
Anonymous
Not applicable

Visual desaparece cuando se selecciona la fecha (año)

Hola Comunidad,

Tengo un gráfico combinado que muestra los ingresos de ventas para 2019 y 2020. El gráfico está bien cuando se selecciona SOLAMENTE 2020 en el área de paneles de filtro. Pero el objeto visual desaparece con un mensaje de error cuando selecciono 2019. Esto es importante porque tengo una segmentación de vendedor en la parte superior de mi página que uso para seleccionar un vendedor.

Creo que me infrasand por qué, debido a la fecha - 1 parte de la fórmula. Estaba pensando que necesitaba añadir AllSelected como parte de la medida, pero si es así, no estaba claro dónde agregarlo.

Esta fórmula hace referencia a la línea que muestra la varianza.

Suma del precio de envío AY%
VAR __PREV_YEAR - CALCULATE([Sum of Shipped Price],DATEADD('Date Table'[Date], -1, YEAR))
devolución
DIVIDE([Suma del precio enviado] - __PREV_YEAR, __PREV_YEAR)

Hay dos medidas, ambas iguales, para 2019 y 2020, para la serie de columnas.
2020 Suma de los envíos - CALCULATE(SUM(Shipments[Shipped Price]),FILTER('Date Table','Date Table'[Year]-"2020"))
3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hola @texmexdragon ,

Según su descripción, sus datos incluyen los de 2019 y 2020. Al elegir 2019, obtendrá un error porque no se pueden obtener los datos anteriores a 2019.

Será mejor que describa sus requisitos con claridad, para que podamos entender su escenario con mayor claridad.

Saludos
Liang
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

@texmexdragon , id allí algo seleccionado de la tabla de fechas.

su suma de fórmula de envío está equivocada

recomienda

Power BI — Preguntas YTD — Inteligencia de tiempo 1–5
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a

parry2k
Super User
Super User

@texmexdragon qué mensaje de error? ¿Qué intentas lograr? No estoy seguro de si necesita filtrar para el año 2020 en su medida.



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.