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'm trying to return a Yes / No value in a card visual in order to trigger a notificatoin alert to team members based on below condition.
IF(lates coverage % < previous coverage % for at least one project, "yes", "No")
If this condition is true for at least one project, I need to alert the particular team.
I use weekly data.
I tried below dax and it didn't work.
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but please try something like below.
Alert1 =
VAR _project =
ADDCOLUMNS (
DISTINCT ( 'Table1'[projectName] ),
"@latest",
CALCULATE (
MAX ( 'Table1'[Coverage Value] ),
'Table1'[Date] = MAX ( 'Table1'[Date] )
),
"@previous",
CALCULATE (
MAX ( 'Table1'[Coverage Value] ),
'Table1'[Date]
= ( MAX ( 'Table1'[Date] ) - 7 )
)
)
VAR _condition =
COUNTROWS ( FILTER ( _project, [@latest] < [@previous] ) )
VAR _result =
IF ( _condition >= 1, "Yes", "NO" )
RETURN
_result
Hi,
I am not sure how your datamodel looks like, but please try something like below.
Alert1 =
VAR _project =
ADDCOLUMNS (
DISTINCT ( 'Table1'[projectName] ),
"@latest",
CALCULATE (
MAX ( 'Table1'[Coverage Value] ),
'Table1'[Date] = MAX ( 'Table1'[Date] )
),
"@previous",
CALCULATE (
MAX ( 'Table1'[Coverage Value] ),
'Table1'[Date]
= ( MAX ( 'Table1'[Date] ) - 7 )
)
)
VAR _condition =
COUNTROWS ( FILTER ( _project, [@latest] < [@previous] ) )
VAR _result =
IF ( _condition >= 1, "Yes", "NO" )
RETURN
_result
Hi, Thank you so much for the support.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
27 |
User | Count |
---|---|
91 | |
50 | |
44 | |
40 | |
35 |