Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hi All
I have a 100 rows table and trying to get a bunch of rows with WINDOW command but getting following error
on following query
EVALUATE
VAR Window1 = WINDOW(1, ABS, 5 , ABS ,Data100Rows, MATCHBY([ID]))
RETURN Window1
Any idea what I am doing wrong?
Thanks
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
10 | |
10 | |
9 | |
7 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
10 |