The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Solved! Go to Solution.
Hi @LMcQ ,
Please update the formula of calculated column [AffectedStockroom] as below and check if it can return your expected result... Please find the details in the attachment.
AffectedStockroom =
VAR _loc =
CALCULATE (
MAX ( 'Locations'[Location Name] ),
FILTER (
'Locations',
IFERROR (
SEARCH ( 'HistoryExtracts'[Description], 'Locations'[Location Name], 1, 0 ),
0
) > 0
&& 'Locations'[Site Category] = "E"
)
)
RETURN
IF (
HistoryExtracts[Type] = "Stockroom Update"
&& NOT ( ISBLANK ( _loc ) ),
_loc,
"Not Found"
)
Best Regards
Thank you so much... I've spent days trying to figure it out on my own... Fantastic!!! Sorting and filtering have always been a weak spot for me
Hi @LMcQ ,
Please update the formula of calculated column [AffectedStockroom] as below and check if it can return your expected result... Please find the details in the attachment.
AffectedStockroom =
VAR _loc =
CALCULATE (
MAX ( 'Locations'[Location Name] ),
FILTER (
'Locations',
IFERROR (
SEARCH ( 'HistoryExtracts'[Description], 'Locations'[Location Name], 1, 0 ),
0
) > 0
&& 'Locations'[Site Category] = "E"
)
)
RETURN
IF (
HistoryExtracts[Type] = "Stockroom Update"
&& NOT ( ISBLANK ( _loc ) ),
_loc,
"Not Found"
)
Best Regards