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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
paulwalker
Creator III
Creator III

Straight table

Hi Community,

I have to create one chart with 3 measures and each months count in one chart. (I feel Pivot table not suitable for this, so used straight table)

I have used straight table (written all the expressions 3 measures and individual months like below)

paulwalker_0-1682012747108.png

Here calculations should be dynamic and when user select Mar'23 - chart should show Jan, Feb and Mar along with 3 measures. If user select Feb'23 - Chart should show Jan and Feb along with 3 measures..

let say user select Mar'23

paulwalker_1-1682013048962.png

Thanks in Advance!

 

Labels (1)
6 Replies
paulwalker
Creator III
Creator III
Author

@tresesco , any suggestions for better view instead of all individual months calculation ? 

edwin
Master II
Master II

my understanding is that you need to display some number of measures that arent turned on/off by the month selection and then you need to add as many measures that represent year to month (in individual months).  the way i would do this is 
1. create your 3 measures (no condition)
2. create 12 measures (Jan to Dec)
3. the labels would be of course dynamic based on the year
4. each would of course have its own expression to calculate just for the month and year
5. add a condition that if the month <= the selected month then turn it on else off

paulwalker
Creator III
Creator III
Author

Thanks for reply Edwin, I'm unable to configure hide/show condition.

edwin
Master II
Master II

not sure what a 5-point condition is.   but thsi is what i am saying:

edwin_0-1682017477516.pngedwin_1-1682017503271.png

this assumes that the data is only for one year starting from Jan
wht i did was add a MonthText Jan to Dec:

edwin_2-1682017653347.png

the user selects the Month 
then for the 12 months my expression is:
Sum({<Month=, MonthText={'Jan'}>}Amount) - this gets the data for the month of Jan
condition is: 
=count({<Month={"<=$(vMonth)"}, MonthText={'Jan'}>}MonthText)



paulwalker
Creator III
Creator III
Author

Is there any better approach instead of hardcoded for all months ??

edwin
Master II
Master II

Build a bridge table between your fact and the calendar. Create pseudo values for perio mint current month then January to December 

then pivot the new field