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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ashmitp869
Helper II
Helper II

Unable to establish any relationship with fact table with date table ?

Hi

I do have different requirement ,where I have a fact table MpSummaryHours where I need to calculate Employee Hours with filter from date field [Pay Period End Date] from the same fact table.

 

The [Pay Period] gives the date range i,e [Date From] to [Date To] depending on user selection 

 
 

Da.png

 
 
 

So , if a user select Year [2024] and Month [02] coming from Pay Period like below

 
 

ashmitp869_2-1715053110681.png

 

 

So - in this case the measures should calculate [Employee Hours] where  [Pay Period End Date] >='31/01/2024' and [Pay Period End Date] <='27/02/2024'.

 

How to create a relationship between them.

Please find the sample [Pay Period] attached. https://github.com/suvechha/samplepbi 

Period Month YearDate FromDate ToYear MonthMonthYear
2024-013/01/202416/01/20242024-01012024
2024-0217/01/202430/01/20242024-01012024
2024-0331/01/202413/02/20242024-02022024
2024-0414/02/202427/02/20242024-02022024
2024-0528/02/202412/03/20242024-03032024
2024-0613/03/202426/03/20242024-03032024
2024-0727/03/20249/04/20242024-04042024
2024-0810/04/202423/04/20242024-04042024
2024-0924/04/20247/05/20242024-04042024
2024-108/05/202421/05/20242024-05052024
2024-1122/05/20244/06/20242024-05052024
2024-125/06/202418/06/20242024-06062024
2024-1319/06/20242/07/20242024-06062024
2024-143/07/202416/07/20242024-07072024
2024-1517/07/202430/07/20242024-07072024
2024-1631/07/202413/08/20242024-08082024
2024-1714/08/202427/08/20242024-08082024
2024-1828/08/202410/09/20242024-09092024
2024-1911/09/202424/09/20242024-09092024
2024-2025/09/20248/10/20242024-10102024
2024-219/10/202422/10/20242024-10102024
2024-2223/10/20245/11/20242024-10102024
2024-236/11/202419/11/20242024-11112024
2024-2420/11/20243/12/20242024-11112024
2024-254/12/202417/12/20242024-12122024
2024-2618/12/202431/12/20242024-12122024

 

@amitchandak will you please help me out in this situation ? I did see your abstract thesis video but unable to resolve this scenario

2 REPLIES 2
h21
Helper I
Helper I

Hi @ashmitp869

I think you have not created Date Table.

Try creating Date Table and make relationship of both the table with Date Table.

Maybe that will be able to provide you solution.

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

Best Regards.

v-shex-msft
Community Support
Community Support

Hi @ashmitp869,

It sounds like a common multiple date filed analysis requirement, I’d like to suggest you can take a look at the Greg’s blog start/end date part if they suitable for your scenario:

Before You Post, Read This: start, end date 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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