Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Powerquery - MTD

Trying to create custom column in Power Query for MTD

Column = Material, Date and Order Qty

I need MTD Order Qty against each transaction based on Material and Date

 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

You are getting into date intelligence, and typically that is analysis and best done in DAX. Power Query for shaping, DAX for analysis. However, @ImkeF has done some solid work on cumulative/running totals in Power Query here, so you could look at that if this MUST be done in PQ. Unless you are dropping this to an Excel table vs the Power Pivot DAX model or the Power BI DAX model though, it really would be best done in DAX using the various date intelligence functions available in Power BI in measures.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

You are getting into date intelligence, and typically that is analysis and best done in DAX. Power Query for shaping, DAX for analysis. However, @ImkeF has done some solid work on cumulative/running totals in Power Query here, so you could look at that if this MUST be done in PQ. Unless you are dropping this to an Excel table vs the Power Pivot DAX model or the Power BI DAX model though, it really would be best done in DAX using the various date intelligence functions available in Power BI in measures.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors