Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Syndicate_Admin
Administrator
Administrator

Convertir esta expresión de Cognos en Power BI Dax

¿Podría ayudarme a convertir la siguiente expresión de Cognos a Power BI DAX lo antes posible?

1.)Ventas del período actual = Caso
Cuando [Drops Fact Fiscal - Security]. [Fecha - Fiscal]. [Año fiscal] = ?pYear? y [Drops Fact Fiscal - Security]. [Fecha - Fiscal]. [Período fiscal]= ?pPeriod? luego [Deja caer Hecho Fiscal - Seguridad]. [Hecho Ventas y Caídas - Fiscal]. [Ventas de facturas]
Else 0
Fin

2.)Ventas del período anterior = Caso
Cuando ([Drops Fact Fiscal - Security].[ Fecha - Fiscal]. [Año fiscal]=cast(cast(?pYear?,integer)-1,varchar(10)) y [Drops Fact Fiscal - Security]. [Fecha - Fiscal]. [Período fiscal]=?pPeriod?)
Luego [Deja caer hecho fiscal - seguridad]. [Hecho Ventas y Caídas - Fiscal]. [Ventas de facturas] Else 0
Fin

3.)Total de casos vs. año anterior = Caso
Cuando ([Drops Fact Fiscal - Security].[ Fecha - Fiscal]. [Año fiscal]=cast(cast(?pYear?,integer)-1,varchar(10)) y [Drops Fact Fiscal - Security]. [Fecha - Fiscal]. [Período fiscal]=?pPeriod?)
Luego [Deja caer hecho fiscal - seguridad]. [Hecho Ventas y Caídas - Fiscal]. [Casos de facturas]
Else 0
Fin

4.)Total de casos = Caso
Cuando [Drops Fact Fiscal - Security]. [Fecha - Fiscal]. [Año fiscal] = ?pYear? y [Drops Fact Fiscal - Security]. [Fecha - Fiscal]. [Período fiscal] = ?pPeriod?
Luego [Deja caer hecho fiscal - seguridad]. [Hecho Ventas y Caídas - Fiscal]. [Casos de facturas]
Else 0
Fin

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@saicharan ,

Lo siento mucho. No estoy muy familiarizado con Cognos, ¿puede dar a estas fórmulas el resultado que desea? ¿O puede decirme qué resultado desea para cada fórmula y bajo qué condiciones?

Cómo obtener respuestas rápidas a su pregunta

Saludos

Equipo de Apoyo a la Comunidad _ Polly

Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.