Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
dannyt1834
Contributor
Contributor

2 dates from different table into 1 calendar dimension in Pivot Table

Hi,

I am currently trying to plot an expression into a Pivot Table and show monthly MTD values. I have the following expression below. And I also included the variable value below.

I am having problem plotting and showing all the MTD values for each whole year. Which I reckon is due to the "Month" dimension which belongs to the "RoomStats" table as seen in the second part of the expression. As there are 2 tables being used which is "Transactions" and "RoomStats", the calculation for Transactions is not working properly and is only showing same values each month.

 

vDate.Reporting=Date(Only(AsAtDate), 'D/MM/YYYY')

 

sum({<TransactionDatasource={'Transactions'}, [Spend Code Class]={'Room Revenue'}, TransactionDay={'$(vDate.Reporting)'}>} TransactionAmountNoTax)

/
sum({<RoomStatisticsDate={'$(vDate.Reporting)'}>}RoomStatisticsOccupiedCount)

 

 

Thank you in advance. Been trying to work it out.

1 Reply
Brett_Bleess
Former Employee
Former Employee

Dan, I am not expert on these, but have a look at the following Design Blog post, I think it may be what you need in this case, but I am not certain.  There are other related posts in this area, so feel free to search yourself using the second link if the first one does not do the trick or help.

https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.