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.
Hi All,
I have gone through the some related posts in this Forum and SQL BI and I wrote the following DAX expression using multiple variables for the measure:
Solved! Go to Solution.
Your measure was missing a closing parenthisis in the first 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 ) ) )
Your measure was missing a closing parenthisis in the first 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 ) ) )
Thanks for the correction.
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 |
---|---|
106 | |
97 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |