cancel
Showing results for 
Search instead for 
Did you mean: 
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
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors