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 August 31st. Request your voucher.
If you want to know how to write more optimized versions of the lookup using other techniques, please go to
https://dax.guide/lookupvalue/
Best
D
Yes, it is returning more than one value. You can use the Alternate result parameter to return something like BLANK to get around the error.
If you want to see the values being returned, do this:
CONCATENATEX(
DISTINCT(
SELECTCOLUMNS(
FILTER('REC-SHIP','REC-SHIP'[CYCLE_ID] = 'REC-SHIP'[Previous Cycle]),
"Shipments.DATED",
'REC-SHIP'[Shipments.DATED]
)
)
)
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
21 | |
14 | |
14 | |
9 | |
7 |