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.
Solved! Go to Solution.
Hi @SushmaReddy ,
You can try this code:
Measure =
VAR _s =
SUMMARIZE (
'Table',
[M1],
"max", MAX ( 'Table'[Date] ),
"status",
CALCULATE (
MAX ( 'Table'[Status] ),
FILTER ( 'Table', 'Table'[M1] = EARLIER ( 'Table'[M1] ) )
)
)
RETURN
COUNTROWS ( FILTER ( _s, [status] = "Failed" ) )
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @SushmaReddy ,
You can try this code:
Measure =
VAR _s =
SUMMARIZE (
'Table',
[M1],
"max", MAX ( 'Table'[Date] ),
"status",
CALCULATE (
MAX ( 'Table'[Status] ),
FILTER ( 'Table', 'Table'[M1] = EARLIER ( 'Table'[M1] ) )
)
)
RETURN
COUNTROWS ( FILTER ( _s, [status] = "Failed" ) )
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you and the logic is working
@SushmaReddy , try like
Measure =
VAR __id = MAX ('Table'[M1] )
VAR __date = CALCULATE ( MAX('Table'[Date] ), ALLSELECTED ('Table' ), 'Table'[M1] = __id )
CALCULATE ( Count ('Table'[Status] ), VALUES ('Table'[M1] ),'Table'[M1] = __id,'Table'[Date] = __date, 'Table'[Status] = "Failed" )
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 |
---|---|
41 | |
20 | |
19 | |
15 | |
15 |
User | Count |
---|---|
46 | |
28 | |
25 | |
18 | |
17 |