Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Danish Holidays #793

Closed
jkoinnovatedk opened this issue Jun 17, 2024 · 16 comments · Fixed by #794 or #801
Closed

Danish Holidays #793

jkoinnovatedk opened this issue Jun 17, 2024 · 16 comments · Fixed by #794 or #801
Labels
area-ManageDates enhancement New feature or request
Milestone

Comments

@jkoinnovatedk
Copy link

Describe the problem

Is it by purpose that you have removed the earlier implemented Danish Holiday names in the template files?

Bravo version

1.0.8 (1.0.8868.14547)

Tabular model

Power BI Desktop, import mode

Power BI

Power BI Desktop June 2024

Steps to reproduce the behavior

No response

Additional context

No response

Screenshots

No response

Anything else ?

No response

@jkoinnovatedk jkoinnovatedk added bug Something isn't working untriaged A new issue requiring triage labels Jun 17, 2024
@albertospelta
Copy link
Collaborator

Hi @jkoinnovatedk, could you please let me know which Danish holiday names were removed or point me to the commit where this change was introduced? Perhaps you are referring to this commit: 8def2db where Ferienavn has been changed to Helligdag?

@albertospelta albertospelta added awaiting reply More information is needed area-ManageDates and removed untriaged A new issue requiring triage labels Jun 18, 2024
@jkoinnovatedk
Copy link
Author

Hi Alberto

It it the names of the Hollidays itself.

They are now written in English instead of Danish as before.

image
image

Regards,
Jørgen

@jkoinnovatedk
Copy link
Author

image

@albertospelta
Copy link
Collaborator

I have reviewed the commit history, and I did not find any changes to the template files that altered the translation. It appears that the names have consistently been in English since the introduction of Danish holidays. Nevertheless, we can proceed with translating them and releasing a new version to address the issue. I have started the translation here using an automatic translator. Could you please review them and confirm if the translations are accurate? Thanks

@albertospelta
Copy link
Collaborator

@jkoinnovatedk By the end of next week, we would like to release a new version that includes the updated translations of the Danish holiday names. If possible, it would be very helpful if you could review and confirm the accuracy of the translations we generated using an automatic translator here https://github.com/sql-bi/Bravo/pull/794/files . Thanks!

@albertospelta albertospelta added this to the v1.0.9 milestone Jul 21, 2024
@jkoinnovatedk
Copy link
Author

jkoinnovatedk commented Jul 21, 2024 via email

albertospelta added a commit that referenced this issue Jul 24, 2024
Store Bededag was a recognized holiday in Denmark until 2023. Starting in 2024, it has been abolished by the Danish government but remains an official holiday in Greenland and the Faroe Islands. See #793 (comment)
albertospelta added a commit that referenced this issue Jul 24, 2024
* Translate holiday names to Danish in HolidaysDefinition

* Fix Danish holiday names based on feedback #793 (comment)

* Add LastYear: 2023 for DK/Store bededag

Store Bededag was a recognized holiday in Denmark until 2023. Starting in 2024, it has been abolished by the Danish government but remains an official holiday in Greenland and the Faroe Islands. See #793 (comment)
@albertospelta albertospelta linked a pull request Jul 24, 2024 that will close this issue
@albertospelta
Copy link
Collaborator

Thank you for the information you provided. We have updated the names of the currently defined holidays and set 2023 as the last year for Store Bededag. At the moment, there are three holidays that are not included, and we have opened a dedicated issue here for these as they likely require a change to the calculation.

For completeness, below is the resulting holiday configuration. If you encounter any errors, please let us know; otherwise, this version will be included in the next release.

PS: A preview version is already available in the internal dev build if you’d like to try it out. Thank you!

{ "DK", 1, 1, 0, 0, 0, "Nytårsdag", 0, 100, 0, 0 },
{ "DK", 99, -3, 0, 0, 0, "Skærtorsdag", 0, 50, 0, 0 },
{ "DK", 99, -2, 0, 0, 0, "Langfredag", 0, 50, 0, 0 },
{ "DK", 99, 1, 0, 0, 0, "Anden påskedag", 0, 50, 0, 0 },
{ "DK", 99, 26, 0, 0, 0, "Store bededag", 0, 50, 0, 2023 },
{ "DK", 99, 39, 0, 0, 0, "Kristi himmelfartsdag", 0, 50, 0, 0 },
{ "DK", 99, 50, 0, 0, 0, "Anden pinsedag", 0, 50, 0, 0 },
{ "DK", 5, 1, 0, 0, 0, "Arbejdernes kampdag", 0, 100, 0, 0 },
{ "DK", 6, 5, 0, 0, 0, "Grundlovsdag", 0, 50, 0, 0 },
{ "DK", 12, 24, 0, 0, 0, "Juleaftensdag", 0, 50, 0, 0 },
{ "DK", 12, 25, 0, 0, 0, "Juledag", 0, 100, 0, 0 },
{ "DK", 12, 26, 0, 0, 0, "Anden juledag", 0, 100, 0, 0 },
{ "DK", 12, 31, 0, 0, 0, "Nytårsaftensdag", 0, 100, 0, 0 },

@jkoinnovatedk
Copy link
Author

jkoinnovatedk commented Jul 24, 2024 via email

@albertospelta
Copy link
Collaborator

Thank you for the info about the three missing holidays and for your help in testing.
I have removed the dates that are not official holidays and below is the updated definition:

{ "DK", 1, 1, 0, 0, 0, "Nytårsdag", 0, 100, 0, 0 },
{ "DK", 99, -3, 0, 0, 0, "Skærtorsdag", 0, 50, 0, 0 },
{ "DK", 99, -2, 0, 0, 0, "Langfredag", 0, 50, 0, 0 },
{ "DK", 99, 1, 0, 0, 0, "Anden påskedag", 0, 50, 0, 0 },
{ "DK", 99, 26, 0, 0, 0, "Store bededag", 0, 50, 0, 2023 },
{ "DK", 99, 39, 0, 0, 0, "Kristi himmelfartsdag", 0, 50, 0, 0 },
{ "DK", 99, 50, 0, 0, 0, "Anden pinsedag", 0, 50, 0, 0 },
{ "DK", 12, 25, 0, 0, 0, "Juledag", 0, 100, 0, 0 },
{ "DK", 12, 26, 0, 0, 0, "Anden juledag", 0, 100, 0, 0 },

I’m not entirely clear on the issue with the logic in the date table definition and the ISBLANK (__HolidayName) function. Could you please provide more details or an example of the problem? If you could share a sample PBIX file, that would be very helpful for figuring this out.

The logic applied in you datetabledefinition does not work with this holidaydefintion --- ISBLANK ( __HolidayName )

@jkoinnovatedk
Copy link
Author

jkoinnovatedk commented Jul 25, 2024 via email

@albertospelta albertospelta removed the awaiting reply More information is needed label Jul 25, 2024
@albertospelta
Copy link
Collaborator

@jkoinnovatedk To handle specific cases like the ones you mentioned, you can use the Custom Date Templates feature. This feature allows you to clone a standard date template and customize it, for example, by adding unofficial holidays, which can then be marked as non-working days. This should help you manage all the examples you provided.

For more details on how to customize date templates, you can take a look at this video: Custom Date Templates with Bravo for Power BI.

@jkoinnovatedk
Copy link
Author

jkoinnovatedk commented Jul 25, 2024 via email

@marcosqlbi
Copy link
Collaborator

@jkoinnovatedk Please, can you describe the use case for holidays that are working days? My concern is that we are going to increase the complexity of the system (which is already non-trivial), making it harder to use for the more common use case, which is just to have the correct working days. For this reason, in general, we tried to avoid adding holidays that are non-working days, as it could generate confusion for certain analyses. At the same time, I understand that the proximity of certain holidays is important for specific products/services, but we didn't receive many requests so far and we try to not increase complexity unless it's necessary.
Thanks!

@jkoinnovatedk
Copy link
Author

jkoinnovatedk commented Jul 26, 2024 via email

@albertospelta
Copy link
Collaborator

Thanks Jørgen! I'm closing this issue as the translated holiday names have been merged and will be included in the next release.

@albertospelta albertospelta removed the bug Something isn't working label Jul 26, 2024
@albertospelta albertospelta added the enhancement New feature or request label Jul 26, 2024
@albertospelta
Copy link
Collaborator

@jkoinnovatedk Fixed in version 1.0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ManageDates enhancement New feature or request
Projects
None yet
3 participants