Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Frnz,
I would like to show monthly wise count({$<Aging_Category={'0-30'}>}Aging_Category).
but here i have to consider maximum date in each month. i.e.,
Jan - 31st [ Depends on my data ]
Feb - 28th
------
Please help me to write expression for that.
Here Dimension ==> Month
Expression ==> count({$<Aging_Category={'0-30'}>}Aging_Category)
Hi Balraj,
Thanks for your reply. Here I need to show in Monthly wise. Month as my dimension, but it has to consider only last date of that month. In some other KPIs also, i have used Month as Dimension. In this KPI only i need to consider last date of that month. Any solution Plz ..
Hi Frnz,
Please find the below attached qvw for your reference.
Hi,
Handling this in script with a flag is the best option like below
Data:
LOAD
*,
If(Day(MonthEnd(DateFieldName)) = Day(DateFieldName), 1, 0) AS MonthEndFlag
FROM DataSource;
Now in your expression just use
Dimension = Month
Expression= count({$<Aging_Category={'0-30'}, MonthEndFlag={1}>}Aging_Category)
Hope this helps you.
Regards,
jagan.
You may also replace your Dim with a calculated Dimension like?
Dim: =aggr(max(Date), Month(Date))
Expression: count({$<Aging_Category={'0-30'}>}Aging_Category)
Hi,
It is not working.
Hi,
Here we need to consider Maximum Date and not last date of that month.
count({$<Aging_Category={'0-30'}>} Aggr(If(Date=Max(Date), Month), Aging_Category))
Edit: Corrected
Hi,
getting "no data to display". Please consider my qvw which was attched above.
You have an extra >} before Aggr. Try removing that and see what happens.
I am getting it like: