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
mq2020
Helper III
Helper III

El script SQL se ejecuta dos veces después de cambiar los parámetros

Hola

Estoy ejecutando un script SQL desde power bi con parámetros de usuario. Cuando se cambian los parámetros, el script parece ejecutarse dos veces.

He visto algunos mensajes con un problema similar, pero aún no he encontrado una solución. ¿Alguien puede ayudar por favor?

6 REPLIES 6
Icey
Community Support
Community Support

Hola @mq2020 ,

¿Está resuelto este problema?


Si se resuelve, por favor acepte siempre las respuestas que tengan sentido como solución a su pregunta para que las personas que puedan tener la misma pregunta puedan obtener la solución directamente.


Si no, por favor hágamelo saber.


Saludos
Icey

jdbuchanan71
Super User
Super User

@mq2020

Creo que esta entrada de blog podría ser capaz de ayudar.

https://blog.crossjoin.co.uk/2020/07/05/why-is-power-bi-running-my-sql-query-twice/

@jdbuchanan71 gracias por compartir. más o menos la misma solución que publiqué.

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.



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.

Sí, abrí la respuesta y luego fui a buscar el enlace, lo que significa que pisé su respuesta. Siento lo de @parry2k

parry2k
Super User
Super User

@mq2020 en lugar de tener un script en pq, la vista de carga/tabla del back-end filtra la tabla con un parámetro y, con el plegado de consultas, devolverá la consulta al back-end.

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.



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 y @jdbuchanan71, gracias por sus publicaciones.

Me tomó un tiempo para conseguir mi cabeza alrededor de él, pero ahora lo he probado y parece estar trabajando 🙂

Para hacer referencia a otros usuarios, he agregado la siguiente sintaxis a mi consulta en la vista de Advance Editor y solo me aseguro de que los tipos de datos se realizaran según mis propias consultas.

Dejar
Source: Sql.Database("nombre_servidor","nombrede_base de datos",
[Consulta "existingquerysyntax "]),
OverrideZeroRowFilter á Table.View(
Null
[GetType () () > tabla de tipos[
Column1Name á Int32.Type,
Column2Name á DateTime.Type,
Column3Name - Byte.Type,
Column4Name - Text.Type
], GetRows () > Fuente, OnTake
•(contar como número) >
si cuenta 0
a continuación, #table(GetType(), á)
else Table.FirstN(Source, count)]
)
En
OverrideZeroRowFilter

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.