Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis

On selection of Year, Month (say, 2014,Jan) and Brand as WC01, i need to write set analysis as

Brand(WC01) value / Total Market Value of Wildcraft . with what expression i can achieve this?

testmkt.JPG

Thanks

8 Replies
Not applicable
Author

Hi Aditi,

Try this expression,

sum({<Brand = {"WC01"}>}Value)/sum({<Market = {"Wildcraft"}>})

Hope this helps.

Regards,

Snehal Nabar

Not applicable
Author

Hey, thanks. i have written the same expression, it does work. But on selection of brand WR03, it should show me

value for brand / value for wrangler. ie1200/11700

I want to write a standard expression for selection of any brand

Not applicable
Author

Hi,

I think you want to use

Sum(Total <Brand,Market> Value) / Sum(Total <Market> Value)

hope that helps

Joe

Not applicable
Author

Well, I do want [sum(Value) for Brand / sum(Value) Market under which the same brand falls]

But how do i write an expression for this?

robert_mika
Master III
Master III

Could you attached your Excel data?

tyagishaila
Specialist
Specialist

Hi Aditi,

Plz try this

and let me know. If you don't get correct result, I will give you another solution.

sum(Total<Year,Month,Brand>Value)

/

sum(TOTAL<Market>Value)

Regards,

Shaila

Not applicable
Author

Basically i want to calculate market share of the brand.

sunilkumarqv
Specialist II
Specialist II

What you actually want to achieve by default 

In set analysis

Brand(WC01) value / Total Market Value of Wildcraft . will work alternatively other selections should trigger

Then you try like this ..

If(Getfeildselections(Brand)='WC01',sum({<Brand = {"WC01"}>}Value)/sum({<Market = {"Wildcraft"}>}),

sum(Value)/sum()))