Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
We have 4 shifts (2 day shifts and 2 night shifts) and I want to query production losses by shift. It used to be the shift schedule was setup as Days - A/C shift and Nights - B/D Shift. I want to split it up into 4 separate shifts A, B, C ,D. Our data reference is setup by date only, not Date / Time. So when I create the relationship it duplicates A and C shift, and B and D duplicates the losses..
@Anonymous, It depends on how you want to analyze the data. If your requirement/dashboard is based on the shift start time, create a datekey column based on starttime and use it in the relationship.
Date Key - YYYYMMDD
M Query - Date.ToText([DateColumn], "yyyyMMdd")
DAX - FORMAT([DateColumn],"YYYYMMDD")
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.