Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hola a todos
He pasado por algunas publicaciones relacionadas en este Foro y SQL BI y escribí la siguiente expresión DAX usando varias variables para la medida:
Solved! Go to Solution.
A su medida le faltaba un paréntesis de cierre en el primer Var.
Test Measure =
VAR Res_2 =
FILTER (
'M1 Notifications',
(
'M1 Notifications'[Created on]
< ( TODAY () - 1825 )
&& 'M1 Notifications'[Created on]
> ( TODAY () - 365 )
)
)
VAR Res_1 =
FILTER (
Res_2,
( 'M1 Notifications'[Notification System Status] = "Outstanding notification"
|| 'M1 Notifications'[Notification System Status] = "Order assigned"
|| 'M1 Notifications'[Notification System Status] = "Notification in process" )
)
RETURN
IF ( COUNTROWS ( Res_1 ) <> BLANK (), COUNTROWS ( Res_1 ), UNICHAR ( ( 32 ) ) )
A su medida le faltaba un paréntesis de cierre en el primer Var.
Test Measure =
VAR Res_2 =
FILTER (
'M1 Notifications',
(
'M1 Notifications'[Created on]
< ( TODAY () - 1825 )
&& 'M1 Notifications'[Created on]
> ( TODAY () - 365 )
)
)
VAR Res_1 =
FILTER (
Res_2,
( 'M1 Notifications'[Notification System Status] = "Outstanding notification"
|| 'M1 Notifications'[Notification System Status] = "Order assigned"
|| 'M1 Notifications'[Notification System Status] = "Notification in process" )
)
RETURN
IF ( COUNTROWS ( Res_1 ) <> BLANK (), COUNTROWS ( Res_1 ), UNICHAR ( ( 32 ) ) )
Gracias por la corrección.