Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Good day,
I have a data set I pull from one of our systems looking at funding from the current Fiscal Year and then the previous five Fiscal Years. Each year has hundreds of thousands of accounting lines. I am trying to build a Power Query where I can update the data set and it automatically gives me the lines I need to deobligate based on the criteria I provide in the Power Query.
In Column6 there are 14 character long Standard Document Numbers using the first three letters of the last name, the last four of the SSN, six numbers of an order and ending with either a "0", A for October, B for November, and so on, excluding "I".
I created a Conditional Column labeled [Month] that gives me the month the obligation posted based on the last character in Column6. "0" simply returns null. I created another Conditional Column labeled [Year] that gives me the year of the funding based on the last two characters in Column10, i.e. "19" = 2019, etc.
I am wanting to create a Custom Column that looks at the month in column [Month] and the year in column [Year] and compares them to the current DateTime.LocalNow value. If the month and year match then I want it to return a 1, else 0. This way I can automaticall exclude the current months obligations and only look at those obligations that are in the past and have disbursements posted against them (this is the criteria I provide in the Power Query).
I get to this point and the formula breaks. I have tried different variations of Date.Month, Date.IsInCurrentMonth, etc.
Please let me know if you have any suggestions!
Solved! Go to Solution.
I believe it's because your "if" is capitalized.