Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Jaycole
Contributor III
Contributor III

help! How to create dashboard to show total number of customer by months

Dear All,

I am new to Qilk Sense 😉

Would to consult on how to create a nice and interactive dashboard using Qilk Desktop version. Please find attached excel file for your reference.

In the excel, please refer the table listing under tab "Data"; and refer to the expected dashboard outcome in Qilk Sense under tab "Expected Outcome in Qilk Sense ".

Requirement: To show the total number of customer by months.

Many thanks and appreciate!

Cole

2 Solutions

Accepted Solutions
OmarBenSalem

here's a problem with this topic; I've already replied 2 times with A VERY LONG MESSAGE explaining each chart and the measures used within each one.

And both times, my message has been deleted...

Anyone would know.. why?

Here's the dashboard I've created as an example : Capture.PNG

 

View solution in original post

OmarBenSalem

:Smiley Sad

1) In the script:

We create the Segment A:

LOAD
Segment,
Category,
Area,
"Month",
"Total"
FROM [lib://data/Data.xlsx]
(ooxml, embedded labels, table is Data);

LOAD
'A' as Segment,
Category,
Area,
"Month",
"Total"
FROM [lib://data/Data.xlsx]
(ooxml, embedded labels, table is Data) where Segment='A1' or Segment='A2';

 

2) In the presentation:

* Chart 1 : Composition %

- Dimension : Area, Segment

- Measure : Sum(Total)/sum({<Segment>}total <Area> Total)

Capture.PNG

 

* Chart 2 : MoM and YTD by Month

- Dimension: Month

- Measures: 

MoM Growht : aggr((Sum(Total)- above(Sum(Total)))/above(Sum(Total)),Month)

YTD Growth : aggr((Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))/rangesum(above(Sum(Total),1,RowNo()) )
,Month)

Capture.PNG

* Chart 3 : MoM by Segment

- Dimension : Month, Segment

- Measure : 

aggr(

(Sum(Total)- above(Sum(Total)))
/
above(Sum(Total))

,Segment, Month)

Capture.PNG

* Chart 4 : YTD by Segment 

- Dimension: Month, Segment

- Measure : 

aggr(
(Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))
/
rangesum(above(Sum(Total),1,RowNo()) )
,Segment, Month)

Capture.PNG

* Chart 5 : Details

Pivot table:

Lines: Area, Segment

Column : Month

Measure (put before column):

- sum : Sum(Total)

- MoM (%) : 

aggr(

(Sum(Total)- above(Sum(Total)))
/
above(Sum(Total))

,Segment, Month)

Ytd : 

aggr(
(Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))
/
rangesum(above(Sum(Total),1,RowNo()) )
,Segment, Month)

Composition : Sum(Total)/
sum({<Segment>}total <Area> Total)

 

Capture.PNG

 

Result:

Capture.PNG

 

If u want to track only Segment = A, just select it:

Capture.PNG

 

Hope this won't be deleted...

View solution in original post

25 Replies
OmarBenSalem

Here's a proposition:

1) In the script:

LOAD
Segment,
Category,
Area,
"Month",
"Total"
FROM [lib://data/Data.xlsx]
(ooxml, embedded labels, table is Data);

//Create the A segment

LOAD
'A' as Segment,
Category,
Area,
"Month",
"Total"
FROM [lib://data/Data.xlsx]
(ooxml, embedded labels, table is Data) where Segment='A1' or Segment='A2';

 

2) In the presentation:

a) Details table:

Pivot table:

As lines : Area, Segment

As columns: Month

as Measure: sum(total)

Capture.PNG

b) Composition %

Dimensions : Area, Segment

Measure: 

Sum(Total)/
sum({<Segment>}total <Area> Total)

Capture.PNG

c) Mom / YtD by Month

Dimension : Month

Measures:

MoM : 

aggr(

(Sum(Total)- above(Sum(Total)))
/
above(Sum(Total))

,Month)

-------------------------

YTD:

aggr(
(Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))
/
rangesum(above(Sum(Total),1,RowNo()) )
,Month)Capture.PNG

 

d) Mom by Segment:

Dimensions: Month, Segment

Measure: 

aggr(

(Sum(Total)- above(Sum(Total)))
/
above(Sum(Total))

,Segment, Month)

Capture.PNG

e) YTD by Segment 

Dimensions: Month, Segment

Measure: 

aggr(
(Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))
/
rangesum(above(Sum(Total),1,RowNo()) )
,Segment, Month)

Capture.PNG

 

Result:Capture.PNG

 

Now, thanks to the fact that all data is associated, if u want to track the behaviour of your Segment = A for example, just select it:

Capture.PNG

 

Hope you'll like it.

Omar BEN SALEM

 

OmarBenSalem

Here's a proposition:

1) In the script:

LOAD
Segment,
Category,
Area,
"Month",
"Total"
FROM [lib://data/Data.xlsx]
(ooxml, embedded labels, table is Data);

//Create the A segment

LOAD
'A' as Segment,
Category,
Area,
"Month",
"Total"
FROM [lib://data/Data.xlsx]
(ooxml, embedded labels, table is Data) where Segment='A1' or Segment='A2';

 

2) In the presentation:

a) Details table:

Pivot table:

As lines : Area, Segment

As columns: Month

as Measure: sum(total)

Capture.PNG

b) Composition %

Dimensions : Area, Segment

Measure: 

Sum(Total)/
sum({<Segment>}total <Area> Total)

Capture.PNG

c) Mom / YtD by Month

Dimension : Month

Measures:

MoM : 

aggr(

(Sum(Total)- above(Sum(Total)))
/
above(Sum(Total))

,Month)

-------------------------

YTD:

aggr(
(Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))
/
rangesum(above(Sum(Total),1,RowNo()) )
,Month)Capture.PNG

 

d) Mom by Segment:

Dimensions: Month, Segment

Measure: 

aggr(

(Sum(Total)- above(Sum(Total)))
/
above(Sum(Total))

,Segment, Month)

Capture.PNG

e) YTD by Segment 

Dimensions: Month, Segment

Measure: 

aggr(
(Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))
/
rangesum(above(Sum(Total),1,RowNo()) )
,Segment, Month)

Capture.PNG

 

Result:Capture.PNG

 

Now, thanks to the fact that all data is associated, if u want to track the behaviour of your Segment = A for example, just select it:

Capture.PNG

 

 

Hope you'll like it.

Omar BEN SALEM

 

OmarBenSalem

here's a problem with this topic; I've already replied 2 times with A VERY LONG MESSAGE explaining each chart and the measures used within each one.

And both times, my message has been deleted...

Anyone would know.. why?

Here's the dashboard I've created as an example : Capture.PNG

 

Jaycole
Contributor III
Contributor III
Author

Hi, can I have the qvf file for reference?
Jaycole
Contributor III
Contributor III
Author

Hello, maybe you can try to repost the solution you've posted earlier? ("the long message")

OmarBenSalem

:Smiley Sad

1) In the script:

We create the Segment A:

LOAD
Segment,
Category,
Area,
"Month",
"Total"
FROM [lib://data/Data.xlsx]
(ooxml, embedded labels, table is Data);

LOAD
'A' as Segment,
Category,
Area,
"Month",
"Total"
FROM [lib://data/Data.xlsx]
(ooxml, embedded labels, table is Data) where Segment='A1' or Segment='A2';

 

2) In the presentation:

* Chart 1 : Composition %

- Dimension : Area, Segment

- Measure : Sum(Total)/sum({<Segment>}total <Area> Total)

Capture.PNG

 

* Chart 2 : MoM and YTD by Month

- Dimension: Month

- Measures: 

MoM Growht : aggr((Sum(Total)- above(Sum(Total)))/above(Sum(Total)),Month)

YTD Growth : aggr((Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))/rangesum(above(Sum(Total),1,RowNo()) )
,Month)

Capture.PNG

* Chart 3 : MoM by Segment

- Dimension : Month, Segment

- Measure : 

aggr(

(Sum(Total)- above(Sum(Total)))
/
above(Sum(Total))

,Segment, Month)

Capture.PNG

* Chart 4 : YTD by Segment 

- Dimension: Month, Segment

- Measure : 

aggr(
(Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))
/
rangesum(above(Sum(Total),1,RowNo()) )
,Segment, Month)

Capture.PNG

* Chart 5 : Details

Pivot table:

Lines: Area, Segment

Column : Month

Measure (put before column):

- sum : Sum(Total)

- MoM (%) : 

aggr(

(Sum(Total)- above(Sum(Total)))
/
above(Sum(Total))

,Segment, Month)

Ytd : 

aggr(
(Sum(Total)- rangesum(above(Sum(Total),1,RowNo()) ))
/
rangesum(above(Sum(Total),1,RowNo()) )
,Segment, Month)

Composition : Sum(Total)/
sum({<Segment>}total <Area> Total)

 

Capture.PNG

 

Result:

Capture.PNG

 

If u want to track only Segment = A, just select it:

Capture.PNG

 

Hope this won't be deleted...

Jaycole
Contributor III
Contributor III
Author

Many thanks!!! will try it now ;D

OmarBenSalem

After all the effort put, u'll have to like my responses 😄 

Jaycole
Contributor III
Contributor III
Author

Hello, for the above example, if i would like to filter by "Category" as well? example as below:

 

example.png