Commit graph

60 commits

Author SHA1 Message Date
Oriol Roqué Paniagua
328723b9ab Merged PR 2003: Business KPIs first draft
This PR aims to provide a first draft for business KPIs, at this stage **quite minimal**.

It mostly contains a MTD and Monthly display approach. No dimensions are created.

The models created are:
- **int_dates_mtd**: mainly it reads from int_dates to retrieve those days needed for a MTD/monthly display
- **int_core__mtd_booking_metrics**: it contains the booking metrics, ending in a format of date|value|value last year|increment
--> here we could add, in the future, additional metrics from other sources (ex: guest journey, etc)
- **int_core__mtd_aggregated_metrics**: it transforms the data coming from the different mtd intermediate sources to be easily displayed in the dashboard. This is a good candidate for macros :)
- **core__mtd_aggregated_metrics**: copy-paste of the its int_core version, including a bit of model documentation

The dashboard is functional but in another PR. I can show you how it looks like at the moment you are going to check the PR

Related work items: #17214
2024-06-11 15:45:57 +00:00
Pablo Martín
366aa7d1ac Merged PR 2005: Replace Guest Details in CheckIn Cover models with details coming from User table
Fixes https://guardhog.visualstudio.com/Data/_boards/board/t/Data%20Team/Stories/?workitem=17240

Related work items: #17240
2024-06-10 15:30:26 +00:00
Pablo Martin
2ea2817627 add tests 2024-06-10 16:23:45 +02:00
Pablo Martin
723bbf1ebe add phone number 2024-06-10 16:14:07 +02:00
Pablo Martin
8b99d9babd add table aliases to track col origin 2024-06-10 15:51:40 +02:00
Pablo Martin
3d11622ae1 remove duplicate field 2024-05-28 14:37:48 +02:00
Pablo Martín
b59c0a96fb Merged PR 1923: User Currency
- Ingest the currency table from the backend into DWH.
- Add the newly created `AccountCurrencyId` into the `User` table.
- Push the data to the intermediate user model while replacing the internal superhog currency ID by the ISO4217 code so it's easily joinable with other stuff.

Now, every money amount related to some user in the SQL server backend can be currency-informed instead of currency-less.
2024-05-24 10:03:00 +00:00
Pablo Martin
90f67d6321 include currency in unified user 2024-05-24 11:54:40 +02:00
Pablo Martin
322fcb8eb0 add id account type to int model 2024-05-23 17:51:04 +02:00
Pablo Martin
69f11c5d4a propagate id account currency 2024-05-23 17:50:08 +02:00
Pablo Martin
3706a0c21c Revert "remove unnecessary nested objects since they can be joined in dwh"
This reverts commit 4cc9644feb.
2024-05-23 16:23:52 +02:00
Pablo Martin
4cc9644feb remove unnecessary nested objects since they can be joined in dwh 2024-05-23 16:22:02 +02:00
Pablo Martin
791cbd47e8 more credit note work 2024-05-17 14:32:06 +02:00
Pablo Martin
8f6e92c187 credit notes intermediate model 2024-05-17 14:32:06 +02:00
Pablo Martin
22e85af8a5 spoecifying numeric precision so that pbi doesn't go crazy 2024-05-17 11:56:18 +02:00
Pablo Martin
4191e4af50 Merge branch 'master' into models/xero-line-items 2024-05-15 15:00:23 +02:00
Pablo Martin
c25a8a7964 add new field in complentess summary 2024-05-15 13:13:57 +02:00
Pablo Martin
7a2663989c exclude checkincover to account for bug 2024-05-15 13:09:27 +02:00
Pablo Martin
eba636b16c a few small details 2024-05-14 16:20:48 +02:00
Pablo Martin
bc4ca1cbc3 lots of currency stuff 2024-05-14 12:26:02 +02:00
Pablo Martin
f8fcf7f2b5 reporting models 2024-05-13 16:52:55 +02:00
Pablo Martin
d0b8d4a8df contacts 2024-05-13 16:09:56 +02:00
Pablo Martin
60d462315e fixed typo 2024-05-13 15:53:44 +02:00
Pablo Martin
bfd7267600 line items model 2024-05-13 15:47:53 +02:00
Pablo Martin
a797f85dc2 fix naming 2024-05-13 15:47:44 +02:00
Pablo Martin
9d4b104374 int invoice model 2024-05-13 15:17:46 +02:00
Pablo Martin
824ff8da9e a few quick and dirty improvements 2024-05-10 00:31:27 +02:00
Pablo Martin
9c338a31ce propagating renames 2024-05-08 12:03:44 +02:00
Pablo Martin
83e48ab6c6 mroe docs 2024-05-07 17:52:35 +02:00
Pablo Martin
3b1301ff6e a few more details 2024-05-03 17:24:35 +02:00
Pablo Martin
180c005e3c more useful stuff for the dashboard 2024-05-02 18:44:11 +02:00
Pablo Martin
a55b355f11 moving forward with the checkincover specific model 2024-04-26 16:45:43 +02:00
Pablo Martin
fd9b241cb6 added to VR 2024-04-24 17:01:35 +02:00
Pablo Martin
c7120bd49c finished the ugly model 2024-04-24 16:50:48 +02:00
Pablo Martin
d4eeeb964e wip for the big completeness monster 2024-04-24 15:05:33 +02:00
Pablo Martin
67991800ef docs and moving stuff 2024-04-08 09:44:32 +02:00
Pablo Martin
df61682d90 a lot of changes 2024-04-04 16:33:08 +02:00
Pablo Martin
5101a2a45e tons of work, dear god what a spaghetti 2024-04-04 10:54:56 +02:00
Pablo Martin
dbd2f44795 removed testing filter 2024-03-20 17:33:01 +01:00
Pablo Martin
d8cf15be4a basic bookings and duplicates 2024-03-20 17:23:08 +01:00
Pablo Martin
1f58a6ba03 only hardcode starting point of rates, not ending 2024-03-13 17:49:26 +01:00
Pablo Martin
89aed285db lot of things, should have committed way earlier 2024-03-13 10:11:46 +01:00
Pablo Martin
8b2dca174f refactor to remove unnecessary bloat 2024-03-12 11:37:48 +01:00
Pablo Martin
6d734cc398 add notes 2024-03-12 11:37:48 +01:00
Pablo Martin
e84294c4b7 refactoring 2024-03-12 11:37:48 +01:00
Pablo Martin
c4b9c42a3c more refactoring 2024-03-12 11:37:48 +01:00
Pablo Martin
1a347c721b use it in downstream 2024-03-12 11:37:48 +01:00
Pablo Martin
606eed9754 some progress 2024-03-12 11:37:48 +01:00
Pablo Martin
f911912b45 pushing back 2024-03-12 11:37:48 +01:00
Pablo Martin
134580c3f6 hardcoded rates for all dates 2024-03-12 11:33:10 +01:00