Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
omid5ive
Creator II
Creator II

Where clause in direct discovery

hi

i have below query and i need to use it in direct dicovery

--------------------------------------

DIRECT QUERY

dimension

       ACOUNT_NUMBER,

       REMDEPDATE,

MEASURE

REMDEP

FROM GHR_TA_CLOSE_BALANCE a

WHERE A.SANAD_DATE_NO = (SELECT MAX (A.SANAD_DATE_NO)

                            FROM GHR_TA_CLOSE_BALANCE a)

------------------------------------------------------------------------------------

when i reload this query i get attached errorCapture.JPG

how can i sole it?

10 Replies
SteveNewman
Employee
Employee

‌"direct" is a key word and so you should not use it to name the table. Instead try something like ...

direct_query:

DIRECT QUERY

DIMENSION

ACCOUNT_NUMBER,

...

Anil_Babu_Samineni

Remove Comma(,) from dimension syntax

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
omid5ive
Creator II
Creator II
Author

i changed it but it does not fixed

omid5ive
Creator II
Creator II
Author

i changed it but it does not fixed

Anil_Babu_Samineni

I assume, You need Nested Aggregation for all resident's.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
omid5ive
Creator II
Creator II
Author

can you send me an example?

Anil_Babu_Samineni

In fact, i never worked with Direct Query earlier. But, I've fetch few data set from different source, Let me think little more related the same. Then we can talk

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
omid5ive
Creator II
Creator II
Author

thanks a lot

SteveNewman
Employee
Employee

What is the new error message?