Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

DAX error

Hi All,

 

I have appended the query multiple times and I did not seem to have any issue, until now.

Megha3012_0-1634748697620.png

Thats the formula I used, I am not sure what the problem is.

There are no duplicate values. I double checked and it is still throwing error.

Any help is appreciated!

Thank you!

 

4 REPLIES 4
AlexisOlson
Super User
Super User

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
)
Anonymous
Not applicable

Thank you! @AlexisOlson 

This is the result I got:

Megha3012_0-1634808448776.png

I dont see the partplantbyYearWeekNum being repeated.

I still quite not understand what the problem is.

Anonymous
Not 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!

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).

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.