Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Is any thing wrong in this expression. Pls help me
Count(text([Campaign Channel])='PPC')[Site Visit Vis Num]
Count({<[Campaign Channel]={'PPC'}>}[Site Visit Vis Num])
I have to use text function in set analysis
What is the value for Campaign Channel field
Hi,
Try
Count(if(text([Campaign Channel])='PPC'),[Site Visit Vis Num]))
Regards
Two issues:
Instead you can create a field in the script with text() and use that in set expression like:
Load
Text([Campaign Channel]) as TextChannel
....
Then, Count({<TextChannel={'PPC'}>}[Site Visit Vis Num])
Or,
try with simple IF statement.
In Qvx target file data type is unknown, but campaign channel is char.
Can't we use this functions directly in set analysis
No. Not on the LHS.
A set expression contains set modifiers, which efficiently are equal to selections. The text you define in the set modifier, will apply a selection in the same way as if it was a search string. Naturally a search string like "=Text(MyValue)" will search for the value "=Text(MyValue)" and not the result you would get if the function was evaluated.
You can accomplish a calculation in the set modifier by using dollar expansion, but this require that you consider how the expansion is made.