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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.