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.
I receive the following error message :
The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.. The exception was raised by the IDbCommand interface.
My query is the following :
LastClosed = CALCULATE(MAX('OptiQ Query'[ClosedUTC]),RELATEDTABLE('OptiQ Query'))
So i am trying to get the MAX date field from a related table.
both tables contain +10.000 rows. The formula worked in the past, but I assume that it fails since it passed a certain number of rows.
Any idea how I can make this work again?
Kind regards,
Bart
Let me explain the situation in more detail.
Table ServiceOrder has a one to many relationship with workorderincident, workorderincident has a one to many relationship with tabel Query. (this relationship is actually 1 to 1, but due to null values, in the workorderincident table, this is impossible to select)
Table Query contains the send date.
I want to get the latest send date for each Service Order.
Therefor I used the CALCULATE(MAX('OptiQ Query'[SentUTC]),RELATEDTABLE('OptiQ Query')) Formula
I understand what related table is and what it does.
And no it's not that simple.
If I use a normal MAX, like you sugested, I get the max date in the workorderincident table. I need the max date of the related records not of the whole table. It seems the MAX is not checking for related records (although there is a 1 to many-1 service order multuple workorderincidents, relationship between both tables).
Therefor my question is :
- what are the limitations of related table?
- is their a more sutable solution for getting this data?
Hi Darlove,
thanks for the answers.
I will look in to all possible improvements (calculated columns,context transitions, filter,...)
I'll let you know how I solved it, or if I need extra info later this week.
Thanks!
Quick update :
For now, i have found a solution.
i was using related table for a table that had no direct link with my main table, there was a table in between those 2.
The temporary solution was creation a new field on the middle table which used related table to the 3th table.
And then updating the column on the first table to link to the second one instead of useing relatedtable to the 3th.
So that woks, for now, but my next step is to still read up upon all possible solutions because i feel that a more permanent/better solution is possible/needed.
Thanks for your help!
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |