Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
71 | |
56 | |
39 | |
35 |
User | Count |
---|---|
66 | |
66 | |
59 | |
53 | |
45 |