Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
vireshkolagimat
Creator III
Creator III

show all values for dimension

Hi All,

I need to show the total no of items available in each BU from the dimension table. 

I used the expression as count(distinct ItemNumber) and it show as 85. By the movement i expand the pivot table, the numbers are splitting. Even after expansion, i need to show the same number i.e. 85 for both customer group and name level.

How to achieve the same. Thanks.

Below screenshot for your reference.

Constant SKU's.PNG

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Count(distinct ...) will produce different totals if you dimension the expression differently. The partial total expression on BU would return the same value as the first for the partial, but the problem is that there ARE 53 distinct SKUs in the first customer group and 63 distinct SKUs in the second customer group.

Its easy to adjust the first table to produce the more granular result in he first chart(sum of 126) with an expression like 

Sum(Aggr(Count(Distinct SKU), BU, Customer_Group))

 I am not sure if the reverse is possible, as the count (and the distinct) will always be split by the dimensions. You may have to look at doing something in the load script or rethinking the sheet objects. In any case, reporting values other than 53 and 63 would be untrue.

 

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
vireshkolagimat
Creator III
Creator III
Author

Hi, The expected output should be like below. The total sku's should be 85 at BU and Customer group level and it should be same if i add any other dimension. The idea is to calculate out of the total sku's, how many are available at the customer location.

I used your expression but its not giving the expected result.

Thank you.

BUCustomer_Group# SKU'sCustomer countTotal SKUAvailabilityPrice TagAvailability %Price Tag %
CA1XX00585185535262%61%
CA1XX00885185635574%65%