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: 
balajiqlikuser
Contributor
Contributor

Extending Dimension to Second table

Hi all,

I have two tables T1 and T2. I have joined them with Year month of Date D1 in T1 with Year month of Date D2 in T2. Now i need to build a chart to see the daily trends. My Dimension is Day(D1) and my expression is sum(Sales1 in T1)/sum(Sales2 in T2). But when i do this, the numerator is grouped by the Day(D1) whereas the denominator is not grouped by Day(D2). I want it to be Day(D1) = Day(D2) for calculating the daily metrics. Any idea on how to achieve this? 

Thanks!

2 Replies
edwin
Master II
Master II

not knowing the columns, peripheral dimensions of both tables, or the data model in general, i would say find a way to concatenate these two tables and have just one date and 2 measures.  or can you link them together by renaming one of the dates so they are the same.  it sounds like they are linked by date anyway.  otherwise create a link table if there are more than just one field that relates them

Kushal_Chawda

@balajiqlikuser  Why don't you just join them based on Date in T1 & Date in T2 instead of year month?