Forum Discussion

spartan27244's avatar
spartan27244
Icon for Resolver I rankResolver I
6 years ago

Creating a BETWEEN relationship

We have a calculated column on many of our tables to convert a date to an integer that represents the year and month in which that item ocurred. For example a date of service for a medical claim (DOS) would be converted in the caluclated column i.e. 7/23/2020 would become 202007 (MonthGroup). This gives a great way to create a table that represents a reporting table by specifying the The Start and End date of that reporting period. So if the Period represents 7/1/2019 to 6/30/2020 converted to 201907 (RptStart) and 202006 (RptEnd), we would join the Report period selected to the Claims table as Select.... From ReportPeriods inner join MedClaims on MedClaims.MonthGroup Between ReportPeriods.RptStart and RptEnd etc. How can I represent this type of relationship within power BI. Note there can be multiple overlapping ReportPeriod defined. I.e. one that represents a calendar year and another that represents a Fiscal year.

1 Reply