Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qlik confused

Dear All,

I want to calculate the share to sales and m2 per row, totals and subtotals. I am using dimensionality but not in big success! There is problem because i am using different and not standard dimensions.

 

It makes right the % calculation at rows but there is an issue at totals, you can see it is calculated 100% but I want to take the above dimension and calculated to that total. Only the Dimensionality 1 (‘Store’ in my example) should give 100%

 

I attach the qlik report ‘example_1’ and my excel file ‘data_1’  (look column H(%m2) and K(%Sales) where I am showing the calculation I want to achieve in qlikview. Plz help i am trying for weeks!

Thanks in advance!

 

13 Replies
Anonymous
Not applicable
Author

It still doesn't work for dimensionality 5

i export it to excel from the qv. Look at the test column

   

StoreFloorFloor NoVendorBrandDimensionality()m2% m2test
Total 03.513100,00%100,00%
GOLDEN HALLTotal 12.64675,34%75,34%
GOLDEN HALL1ος-LOBBYTotal 2100,38%0,38%
GOLDEN HALL1ος-LOBBY1stTotal 310100,00%100,00%
GOLDEN HALL1ος-LOBBY1stKalamasTotal410100,00%100,00%
GOLDEN HALL1ος-LOBBY1stKalamasio5100,38%100,00%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ JEANSTotal 22158,13%8,13%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ JEANS1stTotal 3215100,00%100,00%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ JEANS1stKalamasTotal4215100,00%100,00%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ JEANS1stKalamasa5833,14%38,57%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ JEANS1stKalamasfdg5582,20%27,04%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ JEANS1stKalamasxz5742,80%34,39%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ ΕΠΟΧΙΑΚΟTotal 21104,15%4,15%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ ΕΠΟΧΙΑΚΟ1stTotal 3110100,00%100,00%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ ΕΠΟΧΙΑΚΟ1stKalamasTotal4110100,00%100,00%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ ΕΠΟΧΙΑΚΟ1stKalamasrt51043,92%94,54%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ ΕΠΟΧΙΑΚΟ1stKalamaswe560,23%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ ΕΣΩΡΟΥΧΑTotal 2120,45%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ ΕΣΩΡΟΥΧΑ1stTotal 312100,00%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ ΕΣΩΡΟΥΧΑ1stKalamasTotal412100,00%
GOLDEN HALL1ος-ΓΥΝΑΙΚΕΙΑ ΕΣΩΡΟΥΧΑ1stKalamasjhi5120,45%
sunny_talwar

This should get you those values, I think

If(Dimensionality() = 1, Sum(m2)/Sum(TOTAL m2),

If(Dimensionality() = 2, Sum(m2)/Sum(TOTAL <Store> m2),

If(Dimensionality() = 3, Sum(m2)/Sum(TOTAL <Store, Floor> m2),

                                    Sum(m2)/Sum(TOTAL <Store, Floor, Vendor> m2))))

rubenmarin

I can only work some dynamism on dimension order disabling the possibility to pivot the table (in presentation tab) and using cyclic groups to select the fields, this way I can know wich field is in each dimension and configure the 'total' based on the fields selected for each dimension.

PFA, I only changed the expression for % m2 (and the dimensions, using groups)

Anonymous
Not applicable
Author

Thank you very much!!!! It was so difficult for me to find!