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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
jdcooley719
Regular Visitor

Pulling Minimum Period Number

Good day internet,

 

I'm relatively new to Power BI; but trying to learn the ins and outs. My first probem I've encountered is trying to create a relationship between the dates in my sales table and the date/calender table already existing in my data set. I have one table called GL_PERIODS that contains the year, the period start date, and the period value associated. I also have another table called Date Key that is just a master list of all dates between 2003-2050. What I'm trying to do is associate the GL_PERIOD[PERIOD_NUMBER} column with these master dates, however I don't have a column that defines the end of the period. My company operates on a 4/4/5 calendar which makes the whole process more complicated than just using calendar dates. 

 

So, to summarize; I'm trying to create a calculated column for my table 'Date Key' which currently just has the [Date] column. I want this calculated column to tell me the period that exists in the 'GL_PERIOD'[PERIOD_NUMBER] column when the date is on, or after the earliest possible 'GL_PERIOD'[PERIOD_START] value. Thank you for any help you can provide!

0 REPLIES 0

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.