Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
7 |