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
Brendy_P
Frequent Visitor

Custom Calendar

Hi All

I am creating a custom calendar in the query Editor I want to add a column that if the week number is >=14 then minus13 else add 39. I think I have to add a custom column but I don't know how to write the formula in M lanuage if I am correct in saying. I have tried the condition column but I don't think I can perform this task using it. I should mention that I have a week number column

If you can guide me in the right direction I would appreciate it

Thanks for your time

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Brendy_P , Power Query

new custom column

= if [week number] >=14 then [week number] -13 else [week number] +39

View solution in original post

2 REPLIES 2
Brendy_P
Frequent Visitor

Thank you 

amitchandak
Super User
Super User

@Brendy_P , Power Query

new custom column

= if [week number] >=14 then [week number] -13 else [week number] +39

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.