This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hola a todos,
Estoy tratando de crear una nueva tabla usando una vía viariable (parte fácil) con columnas personalizadas (parte dura)
1o paso, crear una tabla de calendario, funciona bien :
a_calendrier_global =
VAR _mon_calendrier_ =
CALENDAR(FIRSTDATE(t_intervention[int_date_programmation].[Date])
;LASTDATE(t_intervention[int_date_programmation].[Date]))
RETURN
_mon_calendrier_
2o paso, sé que quiero añadir una columna personalizada, así que intenté :
a_calendrier_global =
VAR _mon_calendrier_ =
CALENDAR(FIRSTDATE(t_intervention[int_date_programmation].[Date])
;LASTDATE(t_intervention[int_date_programmation].[Date]))
RETURN
SELECTCOLUMNS(
_mon_calendrier_
; "date"; [Date]
; "test"; "Hello world !"
)pero realmente no funciona, estoy teniendo un error (en inglés algo así como La colonne "date" dans la table "a_calendrier_global" continent des liaisons non valides), también incluso intenté usando SUMMARIZE(_mon_calendrier;[ Fecha]), mismo resultado
¿Qué he perdido o malinterpretado?
Gracias por tiempo.
Hola @SamOPEN ,
Lo siento por eso, pero no podemos reproducir este problema de mi lado con su código DAX compartido,
Creamos una tabla "t_intervention" de ejemplo y, a continuación, creamos dos tablas calculadas con el código, obtuvimos el resultado como sigue,
También podemos usar la función ADDCOLUMNS para agregar una columna a las tablas, como las siguientes:
a_calendrier_global =
VAR _mon_calendrier_ =
CALENDAR (
FIRSTDATE ( t_intervention[int_date_programmation].[Date] );
LASTDATE ( t_intervention[int_date_programmation].[Date] )
)
RETURN
ADDCOLUMNS ( _mon_calendrier_; "test"; "Hello world !" )
¿Podría reproducir este problema con la versión más reciente de Power BI Desktop? Si no contiene ninguna información confidencial, por favor, proporcione una captura de pantalla que contiene información de error.
BTW, pbix como adjunto.
Saludos
Ahora funciona... No sé qué pasó, lo siento por el post...
Pero gracias por su tiempo !
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.