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! Learn more
 
					
				
		
Please I have this block of code in C#, I want to rewrite this in Power BI, but do not know how to filter the workdate.
var pallets = from a in _context.WorkRecordFacts
                      join b in _context.Activities on a.ActivityId equals b.Id
                      join c in _context.Buildings on a.BuildingId equals c.Id
                      join d in _context.BusinessUnits on c.BusinessUnitId equals d.Id
                      join e in _context.EmployeeStatuses on a.EmployeeId equals e.EmployeeId
                      join f in _context.Positions on e.PositionId equals f.Id
                      join g in _context.Uoms on a.Uomid equals g.Id
                      where a.WorkDate >= e.StartDate && a.WorkDate <= e.EndDate
                      where a.WorkDate != DateTime.Parse("0001-01-01")
                      where a.WorkDate >= model.StartDate && a.WorkDate < model.EndDate
                      where f.Code != "CSR"
                      where b.ReportingType == "Regular"
This is the part I need help with
This is my dax but the output is not correct.
I also need to arrange the workday in the right order. Any help will be appreciated.
 
					
				
		
Hi @Anonymous,
Can you please share a pbix or some dummy data that keep the raw data structure and relationship mappings? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
 
					
				
		
 
					
				
				
			
		
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.
 
            | User | Count | 
|---|---|
| 87 | |
| 49 | |
| 36 | |
| 31 | |
| 30 |