+ Reply to Thread
Results 1 to 2 of 2

Power Query Custom Column Formula

  1. #1
    Registered User
    Join Date
    01-31-2022
    Location
    Mesa, AZ
    MS-Off Ver
    Office 365
    Posts
    46

    Power Query Custom Column Formula

    Hello,

    I am trying to get a custom column whose result will be the quarter of the fiscal year based on if the start is <= the first day of the first month of the quarter and the last day of the last month of the quarter. This formula worked for Q1 calculation:

    = if Date.Year([COP Completed]) = 2023 and Date.Month([COP Completed]) <= 3 then "Q1-2023" else null

    As soon as I try to make the nested if I am getting an error (as soon as I put a comma after "Q1-2023")

    =if Date.Year([COP Created]) = 2022 and Date.Month([COP Created]) >= 10 and Date.Month([COP Created]) <=12 then "Q1-2023", if Date.Year([COP Created]) = 2023 and Date.Month([COP Created]) >= 1 and Date.Month([COP Created]) <=31 then "Q2-2023" else null

    I have attached a picture of what this looks like in Power Query Custom Column
    Attached Images Attached Images

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Power Query Custom Column Formula

    try else instead of comma
    this is NOT worksheet formula

    next time attach example excel file not a picture!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Power Query - Custom column
    By chris1089 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2023, 01:22 PM
  2. Add Custom column of its own query name in power query
    By ks.Prajnan in forum Excel General
    Replies: 3
    Last Post: 07-27-2022, 09:24 AM
  3. [SOLVED] Power Query Custom Column syntax help
    By L.J. in forum Excel General
    Replies: 6
    Last Post: 11-12-2019, 03:45 PM
  4. Custom Permutations Column in Power Query from two columns in the same Query
    By PaintPaddy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2019, 02:48 PM
  5. [SOLVED] Power Query Custom Column Formula
    By whiskeybravo91 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-06-2018, 11:10 AM
  6. Power Query Custom Column Formula
    By whiskeybravo91 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2018, 09:57 AM
  7. Help with Power Query Custom Column Formula
    By travis.cook21 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-16-2016, 01:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1