Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
dhanu_today
Creator
Creator

Need Help !

Hello All,

I have calculate the data as per the attached source.

The desired output shouls be as below.

Company_segment      Count(company_codes)     Count(accounts_no)    sum(balance)

Please find the attached source data and the application as well. let me know any concerns..

Thanks in advance,

Dhanu

1 Solution

Accepted Solutions
giakoum
Partner - Master II
Partner - Master II

add the distinct in your expressions :

Count(distinct company_codes)

View solution in original post

13 Replies
giakoum
Partner - Master II
Partner - Master II

add the distinct in your expressions :

Count(distinct company_codes)

dhanu_today
Creator
Creator
Author

Thanks..I am stuck at next level.

jsingh71
Partner - Specialist
Partner - Specialist

Should you want below output? Balance field is not there in your loaded data.

chart.png

dhanu_today
Creator
Creator
Author

Yes ..its not there..But from the attached source data from the sheet balance..i have to do the data model to the application and then i have to get the table1 and table 2 as output.

Thanks,

dhanu

giakoum
Partner - Master II
Partner - Master II

do you know how or do you need help?

dhanu_today
Creator
Creator
Author

I need help 🙂

giakoum
Partner - Master II
Partner - Master II

You need to fix the period format in your excel file. it has to be consistent.

02/09/2014
25/02/14
dhanu_today
Creator
Creator
Author

I will correct that.Its my type mistake.

giakoum
Partner - Master II
Partner - Master II

then it will be easy

SET DecimalSep='.';

SET MoneyThousandSep=',';

SET MoneyDecimalSep='.';

SET MoneyFormat='$#,##0.00;($#,##0.00)';

SET TimeFormat='h:mm:ss TT';

SET DateFormat='MM/DD/YYYY';

SET TimestampFormat='MM/DD/YYYY h:mm:ss[.fff] TT';

SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';

SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';

Individul:

LOAD Account_no,

     Company_code,

     Cust_id,

     BS_Segment,

     PS_segment,

     period

FROM

source.xlsx

(ooxml, embedded labels, table is Individul);

company:

LOAD Company_code,

     Company_Cust_id,

     Comp_segment

FROM

source.xlsx

(ooxml, embedded labels, table is company);

balance:

LOAD Balance,

     period

FROM

source.xlsx

(ooxml, embedded labels, table is Amount);