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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
kroman
Helper II
Helper II

WINDOWs Relation parameter only contains columns added by DAX table functions. This is not supported

Hi All

I have a 100 rows table and trying to get a bunch of rows with WINDOW command but getting following error

 

kroman_0-1688143975360.png

on following query

EVALUATE  
     VAR Window1 =  WINDOW(1, ABS, 5 , ABS ,Data100Rows, MATCHBY([ID])) 
RETURN Window1

Any idea what I am doing wrong?

Thanks

1 REPLY 1
Anonymous
Not applicable

Hi @kroman,

According to the documents, the relation parameter of the WINDOW function is optional and it specifies a table expression from which the output row is returned. If you specified, all columns in partitionBy need to from this or a related table.

WINDOW function (DAX) - DAX | Microsoft Learn

In addition, you can also take a look at the following blog about window function usage if it helps:

Introducing window functions in DAX - SQLBI

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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