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
Fsciencetech
Helper III
Helper III

Dax Calculation in Column to Measure

Hi Folks,

Need you help, I am stuck in one dax, I was tried below calculation on column, the result is fine but I need this calculation on measure.

could you please help me on this.

 

MissPart =
VAR Part = IF(OSMSData[OSLastReplanDate] = MAX(OSMSData[OSLastReplanDate])
&& NOT(ISBLANK(OSMSData[OSMaterialRecoveryDate])) && NOT(ISBLANK(OSMSData[SapSoli]))
&& FORMAT(OSMSData[OSMaterialRecoveryDate],"Text") <> "TBC" && FORMAT(OSMSData[OSMaterialRecoveryDate],"Text") <>" ",
OSMSData[ComponentPartNumber])
 
RETURN
CALCULATE(
Part,
FILTER(OSMSData,
NOT(ISBLANK(Part))
),
SUMMARIZE(OSMSData,OSMSData[ComponentPartNumber],OSMSData[Order_CustomerDG],OSMSData[SapSoli],OSMSData[MaxOsLastreplandate1],OSMSData[OSLocation])
)
1 REPLY 1
v-henryk-mstf
Community Support
Community Support

Hi @Fsciencetech ,


Can you provide test data link from OneDrive, because if I don’t know the relationship between the specific data model and the table, I can’t do further testing.


Let me know immediately, looking forward to your reply.


Best Regards,
Henry

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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