Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Below is the DAX Measure that I'd be looking to put the condition into:
Solved! Go to Solution.
Try
Quote Turnaround Time for Approval Report Test File =
VAR ResponsesThisQuoteVersion =
CALCULATETABLE (
DISTINCT ( 'Test Approval Report'[Response Date] ),
ALLEXCEPT (
'Test Approval Report',
'Test Approval Report'[Quote Number],
'Test Approval Report'[Quote Version]
)
)
VAR MaxRecall =
CALCULATE (
MAX ( 'Test Approval Report'[Response Date] ),
ALLEXCEPT (
'Test Approval Report',
'Test Approval Report'[Quote Number],
'Test Approval Report'[Quote Version]
),
'Test Approval Report'[Response] = "RECALLED"
)
VAR ThisResponse =
AVERAGEX ( 'Test Approval Report', 'Test Approval Report'[Response Date] )
VAR SubDT =
AVERAGEX ( 'Test Approval Report', 'Test Approval Report'[Submission Date ] )
VAR MaxResponse =
MAXX ( ResponsesThisQuoteVersion, 'Test Approval Report'[Response Date] )
RETURN
IF (
ThisResponse <> MaxResponse,
BLANK (),
MaxResponse - COALESCE ( MaxRecall, SubDT )
) * 24 * 60
Am currently testing this out, and it is working. Thank you so much!
Try
Quote Turnaround Time for Approval Report Test File =
VAR ResponsesThisQuoteVersion =
CALCULATETABLE (
DISTINCT ( 'Test Approval Report'[Response Date] ),
ALLEXCEPT (
'Test Approval Report',
'Test Approval Report'[Quote Number],
'Test Approval Report'[Quote Version]
)
)
VAR MaxRecall =
CALCULATE (
MAX ( 'Test Approval Report'[Response Date] ),
ALLEXCEPT (
'Test Approval Report',
'Test Approval Report'[Quote Number],
'Test Approval Report'[Quote Version]
),
'Test Approval Report'[Response] = "RECALLED"
)
VAR ThisResponse =
AVERAGEX ( 'Test Approval Report', 'Test Approval Report'[Response Date] )
VAR SubDT =
AVERAGEX ( 'Test Approval Report', 'Test Approval Report'[Submission Date ] )
VAR MaxResponse =
MAXX ( ResponsesThisQuoteVersion, 'Test Approval Report'[Response Date] )
RETURN
IF (
ThisResponse <> MaxResponse,
BLANK (),
MaxResponse - COALESCE ( MaxRecall, SubDT )
) * 24 * 60