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 ) ) )
Check out new user group experience and if you are a leader please create your group
100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.
User | Count |
---|---|
382 | |
213 | |
83 | |
73 | |
69 |
User | Count |
---|---|
444 | |
242 | |
133 | |
83 | |
79 |