Forum Discussion
Anonymous
2 years agoNot applicable
DAX measure not returning expected result
Hi Fabric Community, Can you help me with DAX below? The DAX for a measure but didn't return the expected result. Goal result: How many overdeliveries happened across the stores in a week? I ...
amitchandak
Super User
2 years agoAnonymous , Try two measures like
M1= CALCULATE(DISTINCTCOUNT('Fact table'[Carton ID]),USERELATIONSHIP('Rolling Calendar'[Date],'Fact table'[Delivered date]))
Sumx(SUMMARIZE( 'Fact table'[Destination store],
[Week Number], "Delivered qty", [M1], "Max Rece Capa", MAX('Dimension table'[Rec. Cap.])), IF([Delivered qty]>[Max Rece Capa],1,0))