This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Morning all,
I need to calculate semester from a date stored in a column in Power Query like:
01/01/2022 ==> S1
07/18/2022 ==> S2
I've tried the built-in functions of Power Query but I only for Quarter.
Any help will be appreciated, thanks in advance.
Solved! Go to Solution.
Here is one way to do it. Add a custom column with an expression like this.
= "S" & (if Date.Month([Date]) >=7 then "2" else "1")
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Here is one way to do it. Add a custom column with an expression like this.
= "S" & (if Date.Month([Date]) >=7 then "2" else "1")
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.