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.
Hi All,
Currently i am using the below formula in excel to get my week ending date
=[@[Transaction Date]]+7-WEEKDAY([@[Transaction Date]],16)
How do i get this logic in power query editior using custom coloumn?
i am aware i can create a "calculated coloumn" but for some reason i want to do this calculation in power query editor?
Let me know if you can help on this
Solved! Go to Solution.
In the code for the step you added for end of week, just add Day.Saturday like this
= Table.AddColumn(#"Inserted Quarter", "End of Week", each Date.EndOfWeek([Date], Day.Friday), type date)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
In the code for the step you added for end of week, just add Day.Saturday like this
= Table.AddColumn(#"Inserted Quarter", "End of Week", each Date.EndOfWeek([Date], Day.Friday), type date)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi, @vjnvinod , it's even easier in Power Query; a prêt-à-manger functionality is available on UI.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
This is good, but looks like its taking saturday as week ending in my data
is there anyway we can change this to Friday as week ending
basically below logic(which is in excel)
=[@[Transaction Date]]+7-WEEKDAY([@[Transaction Date]],16)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |