Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

month avg

Dear Members,

I have follwoing issue

mon  amount

jan     5000

feb     30000

mar    40000

so i Want Avg for every month

ex: jan 31 days so avg is 30000/31 days 999 valuu will come

how its change dynamically by every month selection

13 Replies
sreenivas
Creator III
Creator III

PFA of the Solution it may help you out.

Not applicable
Author

hi

hope this help you

dateamount
1/1/20125000

in your expression write

amount / Day(Month(date))

then output display like

date amount / Day(Month(date))
1/1/12 161.29032258065

thanks.

brijesh1991
Partner - Specialist
Partner - Specialist

Table1:

LOAD Date

(Date#(mon,'MMM'),'MMM') as Mon,amount Inline

[

 

mon,amount

jan,5000

feb,30000

mar,40000
]

;

load

Mon,TextBetween(MonthEnd(Mon),'/','/') as No.ofDays Resident

Table1;

brijesh1991
Partner - Specialist
Partner - Specialist

Table1:

LOAD Date

(Date#(mon,'MMM'),'MMM') as Mon,amount Inline

[

 

mon,amount

jan,5000

feb,30000

mar,40000
]

;

load

Mon,TextBetween(MonthEnd(Mon),'/','/') as No.ofDays Resident

Table1;

brijesh1991
Partner - Specialist
Partner - Specialist

Table1:

LOAD Date

(Date#(mon,'MMM'),'MMM') as Mon,amount Inline

[

 

mon,amount

jan,5000

feb,30000

mar,40000
]

;

load

Mon,TextBetween(MonthEnd(Mon),'/','/') as No.ofDays Resident

Table1;

brijesh1991
Partner - Specialist
Partner - Specialist

Table1:

LOAD Date

(Date#(mon,'MMM'),'MMM') as Mon,amount Inline

[

 

mon,amount

jan,5000

feb,30000

mar,40000
]

;

load

Mon,TextBetween(MonthEnd(Mon),'/','/') as No.ofDays Resident

Table1;

brijesh1991
Partner - Specialist
Partner - Specialist

Table1:

LOAD Date

(Date#(mon,'MMM'),'MMM') as Mon,amount Inline

[

 

mon,amount

jan,5000

feb,30000

mar,40000
]

;

load

Mon,TextBetween(MonthEnd(Mon),'/','/') as No.ofDays Resident

Table1;

brijesh1991
Partner - Specialist
Partner - Specialist

Table1:

LOAD Date

(Date#(mon,'MMM'),'MMM') as Mon,amount Inline

[

 

mon,amount

jan,5000

feb,30000

mar,40000
]

;

load

Mon,TextBetween(MonthEnd(Mon),'/','/') as No.ofDays Resident

Table1;

brijesh1991
Partner - Specialist
Partner - Specialist

Table1:

LOAD Date

(Date#(mon,'MMM'),'MMM') as Mon,amount Inline

[

 

mon,amount

jan,5000

feb,30000

mar,40000
]

;

load

Mon,TextBetween(MonthEnd(Mon),'/','/') as No.ofDays Resident

Table1;