Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 !
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.