Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
¿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
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.