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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Nathan__Mox
Helper I
Helper I

DAX Error:The PARTITIONBY function can only be used in the PartitionBy parameter of window functions

Hey all,

 

Im having a bit of trouble with the Power BI DAX calculation below.

 

Expected result CC =
SUMX (
    WINDOW (
        1,
        ABS,
        0,
        REL,
        SUMMARIZE ( Data, Data[Item Code], Data[date], Data[Quantity] ),
        ORDERBY ( Data[date], ASC ),
        KEEP,
        PARTITIONBY ( Data[Item Code] )
    ),
    Data[Quantity]
)

 

 

It works perfectly on my device, but when I share a copy to someone else it come up with the error 'The PARTITIONBY function can only be used in the PartitionBy parameter of window functions.' 

 

I'm unsure if this is a problem with Power BI or our devices.

 

Any help would be very much appreciated!

 

Any extra infomation let me know.

 

Thanks 

Nathan

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

The first thing I'd check is if their version of Power BI is up to date.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

The first thing I'd check is if their version of Power BI is up to date.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.