Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
73 | |
70 | |
38 | |
25 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
43 | |
42 |