Forum Discussion
DAX error
The error implies that 'Part File' contains multiple rows where 'Part File'[PartPlantbyYearWeekNum] is the same but has different values of [OrderMinimumQty].
Try defining a calculated table like this to try finding where this occurs:
Summary =
FILTER (
SUMMARIZE (
'Part File',
'Part File'[PartPlantbyYearWeekNum],
"DistinctQty", DISTINCTCOUNT ( 'Part File'[OrderMinimumQty] )
),
[DistinctQty] > 1
)- Anonymous4 years agoNot applicable
Thank you! AlexisOlson
This is the result I got:
I dont see the partplantbyYearWeekNum being repeated.
I still quite not understand what the problem is.
- Anonymous4 years agoNot applicable
I understood what the problem is.
PartplantByYearWeekNumber is repeated twice with different orderminqty.
Thank you! AlexisOlson
Can I please know how to fix that?
Thanks again!
- AlexisOlson4 years agoSuper User
You need to either remove the repeats before loading the query to the model or else decide how you want to choose Qty when there are multiple values present and write your lookup accordingly (not with LOOKUPVALUE).