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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
harveenkaur
Contributor III
Contributor III

Daily and monthly data handling

I have sales data which is at month level and a some other txn  data which is at daily level.

Example:- in sales data , data is aggregated at monthly level ( Dates are only 1st of every month) and in the txn data ( there are daily dates , every date of the month). How to handle this in data modelling , as both the outputs need to be combined and if data is loaded only first of every month is joined, rest dates are being ignored?

Labels (1)
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

As so often... it depends.

Perhaps the easy solution is to apply the MonthStart function to the daily dates from the txn data. If you want to also keep the daily dates from the txn data you could keep those in another new field by aliasing the original field name to a new one. That means loading the field twice, once with applying the MonthStart function and giving it the same name as the date field from the sales data and loading it once more with aliasing it to another name.

Or perhaps you need something like this: https://community.qlik.com/t5/Qlik-Design-Blog/Fact-Table-with-Mixed-Granularity/ba-p/1468238


talk is cheap, supply exceeds demand
jonathandienst
Partner - Champion III
Partner - Champion III

If the dates are linked to a calendar with a Month  field, then you can just use the Month as a dimension and sum the transaction data to compare with the sales data.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein