Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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" )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
8 |
User | Count |
---|---|
22 | |
13 | |
11 | |
10 | |
10 |