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

Script error

Hello,

Could someone tell me what's wrong with this script please?

vSourcePath='..\1. Sources';

AssAuto:

LOAD [Nom garage],

     [Date de création],

     count([Nom garage])as Counting  

FROM

'$(vSourcePath)\Ass Auto Marsh.xlsx'

(ooxml, embedded labels, table is [Ass Auto Marsh]);

Thank you

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

The problem is that you caanot execute a count without a group by ...

View solution in original post

8 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Could you tell what kind of error returns the script?

shanky1907
Creator II
Creator II

What Error are you getting exactly?

Not applicable
Author

I've got this message:

Invalid expression

AssAuto:

LOAD [Nom garage],

     [Date de création],

     count([Nom garage])as Counting  

FROM

'..\1. Sources\Ass Auto Marsh.xlsx'

(ooxml, embedded labels, table is [Ass Auto Marsh])

Not applicable
Author

I've got this message:

Invalid expression

AssAuto:

LOAD [Nom garage],

     [Date de création],

     count([Nom garage])as Counting 

FROM

'..\1. Sources\Ass Auto Marsh.xlsx'

(ooxml, embedded labels, table is [Ass Auto Marsh])

alexandros17
Partner - Champion III
Partner - Champion III

The problem is that you caanot execute a count without a group by ...

Anonymous
Not applicable
Author

Hello!

you  can  try it!

SET vSourcePath='..\1. Sources\';

AssAuto:

LOAD [Nom garage],

     [Date de création],

     count([Nom garage])as Counting 

FROM

$(vSourcePath)Ass Auto Marsh.xlsx

(ooxml, embedded labels, table is [Ass Auto Marsh]);

MK_QSL
MVP
MVP

Use anyone of below

Let vSourcePath='..\1.Sources';

Data:

LOAD [Nom garage],

     [Date de création],

     COUNT([Nom garage]) as Counting

FROM

[$(vSourcePath).xlsx]

(ooxml, embedded labels, table is [Ass Auto Marsh])

Group By [Date de création],[Nom garage];

or

Let vSourcePath='..\1.Sources';

Data:

LOAD

     [Date de création],

     COUNT([Nom garage]) as Counting

FROM

[$(vSourcePath).xlsx]

(ooxml, embedded labels, table is [Ass Auto Marsh])

Group By [Date de création];

Not applicable
Author

You right!

I 've write "Group By [Nom garage],[Date de création] ;"

and it's working

thank you very much