Forum Discussion
Data Modeling - Date Table
- 5 years ago
Hi,
Write this calculated column formula in the Date Table
Column = LOOKUPVALUE('PHolidays (2)'[Public Holiday],'PHolidays (2)'[Date],'Date'[Date])Now ensure that all your tables are connected only to the Date Table. Whenever you want to view any information by Public Holidays, drag that column from the Date Table (not from the PHolidays table).
Hope this helps.
Hi,
You should create a Calendar Table first. Using the LOOKUPVALUE() function, bring over the Holidays from the PHolidays table to the Calendar Table. The Calendar Table should have a relationship with the other tables.
- Yrstruly20215 years agoHelper V
I created relationships to my tables. It does not display when a try and create a visualisation with different measures in powerbi? see: https://drive.google.com/file/d/1CBpFLkw37E5aeYSG9RXMLTzOXUCdcn4m/view?usp=sharing and https://drive.google.com/file/d/1n6oJToedcG0lfh06Xq2RO5j1l-3pUYeR/view?usp=sharing
- Ashish_Mathur5 years agoSuper User
Hi,
Write this calculated column formula in the Date Table
Column = LOOKUPVALUE('PHolidays (2)'[Public Holiday],'PHolidays (2)'[Date],'Date'[Date])Now ensure that all your tables are connected only to the Date Table. Whenever you want to view any information by Public Holidays, drag that column from the Date Table (not from the PHolidays table).
Hope this helps.
- Yrstruly20215 years agoHelper V
Thanks, can you send me the pbix?