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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Issue on How to use earlier/earliest on a semantic model connected in direct query ?

Hello community, I face the following issue:

I have a semantic model as data source connected in direct query. I try to create the following column on it. No error when creating the measure but an erro when I integrate in in a table to see the result:

Column (dax) : 

 

test = CALCULATE(MAX(F_PRICE_EVOLUTION[date]), D_PURCHITEM[TK] = EARLIEST(F_PRICE_EVOLUTION[TK]))

 

 

Data set sample:

TKdate

1

2024/02/05
22023/01/03
32024/04/03
32023/01/01
22023/05/01
12023/02/02
22024/04/02

 

I want to create a column that will have the max date for each tk value. Ex the new column should have 2024/02/05 for tk = 1, 2024/04/02 for tk = 2 and 2024/04/03 for tk = 3.

No issue when I create this dax expression but when I insert it to see in a table there is an error saying:

the result set of a query on an external data source has exceeded the maximum allowed size   

 Any idea on how to achieve that easily ?

 

Thanks in advance

1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

Hello @Anonymous 

 

Please check this post Solved: The resultset of a query to external data source h... - Microsoft Fabric Community 

 

Regards,

Ritesh

"

ribisht17_0-1732646154186.pngPlease mark the answer if it was helpful so that it can help others as well. ribisht17_1-1732646154188.png

 

"

View solution in original post

1 REPLY 1
ribisht17
Super User
Super User

Hello @Anonymous 

 

Please check this post Solved: The resultset of a query to external data source h... - Microsoft Fabric Community 

 

Regards,

Ritesh

"

ribisht17_0-1732646154186.pngPlease mark the answer if it was helpful so that it can help others as well. ribisht17_1-1732646154188.png

 

"

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors