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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
rjose
Frequent Visitor

Data modeling with date, time & time period dim tables

Hi,

I want to create a Power BI model with date (calendar), time (hours) & Timeperiod (YTD, MTD etc.). Below is the current structure, calendar & time table are connected to fact tables. I'm not able to make the relationship b/w Time & Timeperiod bidirectional. This is messing up the last year calculations using dateadd. What would be the best way to model this data?

rjose_0-1673905321966.png

 

8 REPLIES 8
bolfri
Solution Sage
Solution Sage

Based on what you said:


@rjose wrote:

I want to create a Power BI model with date (calendar), time (hours) & Timeperiod (YTD, MTD etc.). 

I thought the Timeperiod is a table that agreggates dates to dynamic calculations.

 

Without sample data (even few rows and expected results showed in excel/paint) it's hard to say what model would be best for your scenario. Can you provide this pbix file with those table and few rows from fact table?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




rjose
Frequent Visitor

Sample.PNG

Hi, can you share excel file with sample data like you've shown it on screenshot? 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




rjose
Frequent Visitor

I'm not able to attach the file to this thread 😞 It says .xlsx is not supported

You can use https://wetransfer.com/ and give a link here.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




rjose
Frequent Visitor

I have the sample file in my work laptop and my organization doesn't allow use of external file sharing services

bolfri
Solution Sage
Solution Sage

Why Time table is connected to Timesperiod? YTD i MTD it's bassicly a period names that should be connected to Calendar only. What am I missing here?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




rjose
Frequent Visitor

I need time period to start at particular hours for events. For example, event A is from Jan 10 6 PM to Jan 15 11:59 PM. Wasn't able to capture this without having time in 'Timeperiod' table  

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.