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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |