Forum Discussion

Guyfox's avatar
Guyfox
New Member
4 years ago

Help with filtered query

I've a special request with the following db schema : Relations are one to many from left to right below.

 

CUSTOMERSCENARIOFILELINESOFFILE

id

ididid
namenamenameline1
 customer_iddateuploadline2
  scenario_idfile_id

 

My problems are :

When i select a customer in my chart i would like to display the count of line1 which contain exact string= "String" of the latest file[dateupload].

I think i have to do some calculated column , or special mesure , but cannot find a solution for the moment .

For the moment , when i select a customer , i only have the count of all the lines of all the files.

 

I think , i have to add column to FILE table, with countofline1 , countofline2 ?

 

Any help or advise would be helpful .

 

Thanks in advance .

1 Reply