DAX stands for Data Analysis Expressions. DAX is the formula language used in Power Pivot and Power BI Desktop. DAX uses functions to work on data that is stored in tables.
Power Query (M) is used to query data sources, clean, and load data. Then you use DAX to analyze the data in Power Pivot.