I've been in countless forums looking for the solution to this problem.I'm working with a Data Model (Power Pivot), and I'm completing my measures for the current total of Defect Per UnitThe Measure for the TOTAL works just fine.The Measure for the YTD works just fine.The Measure for the MTD returns nothing (blank)I cannot get a handle on why.
Code:
Assembly PDI Defect Count:=CALCULATE([PDI Defect Count],Defects[Cause Group]="Assembly",USERELATIONSHIP(Defects[Date],'Calendar'[Date])) - initial total - WORKS
Assembly PDI Defect Count YTD:=CALCULATE([Assembly PDI Defect Count],DATESYTD('Calendar'[Date])) - Total year-to-date - WORKS and verified
Assembly PDI Defect Count MTD:=CALCULATE([Assembly PDI Defect Count],DATESMTD('Calendar'[Date])) - Does not WORK - should report "4", but reports "(blank)"
Any help would be greatly appreciated.
Code:
Assembly PDI Defect Count:=CALCULATE([PDI Defect Count],Defects[Cause Group]="Assembly",USERELATIONSHIP(Defects[Date],'Calendar'[Date])) - initial total - WORKS
Assembly PDI Defect Count YTD:=CALCULATE([Assembly PDI Defect Count],DATESYTD('Calendar'[Date])) - Total year-to-date - WORKS and verified
Assembly PDI Defect Count MTD:=CALCULATE([Assembly PDI Defect Count],DATESMTD('Calendar'[Date])) - Does not WORK - should report "4", but reports "(blank)"
Any help would be greatly appreciated.