Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |