Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have a created column with which I re-format dates into YYYY-WW. It is working just fine as it is referring to a column without any blanks. Here is the created column's formula:
I created a different column using the same formula on a different date column, although this column has some blank rows. As I cannot remove those blank rows, i'm having a hard time finding a solution. Here is the formula along with it's error:
Can anyone provide some help on the matter? I'm fairly new to PBI and I've been running in circles trying to find a solution.
Thanks!
Solved! Go to Solution.
try writing like this
Open YearWeek =
IF([u_register_date],
YEAR ( 'Files BI’[u_register_date] )*100 + WEEKNUM ('Files BI’[u_register_date],1 ))
-------or ------
Open YearWeek =
IFERROR(
YEAR ( 'Files BI’[u_register_date] )*100 + WEEKNUM ('Files BI’[u_register_date],1 ),,BLANK())
-------or------
Open YearWeek =
IFERROR(
YEAR (DATEVALUE( 'Files BI’[u_register_date] ))*100 + WEEKNUM (DATEVALUE('Files BI’[u_register_date]),1 ),,BLANK())
try writing like this
Open YearWeek =
IF([u_register_date],
YEAR ( 'Files BI’[u_register_date] )*100 + WEEKNUM ('Files BI’[u_register_date],1 ))
-------or ------
Open YearWeek =
IFERROR(
YEAR ( 'Files BI’[u_register_date] )*100 + WEEKNUM ('Files BI’[u_register_date],1 ),,BLANK())
-------or------
Open YearWeek =
IFERROR(
YEAR (DATEVALUE( 'Files BI’[u_register_date] ))*100 + WEEKNUM (DATEVALUE('Files BI’[u_register_date]),1 ),,BLANK())
you checked my solution?
Hey Admedx,
I just checked it out, apologies for the delay I was out of town. It works perfectly! Thanks so much! 🙂
@Peacee maybe try this, check blank first and then do the calculation
New Column = IF ( NOT ISBLANK ( Table[Column] ), <<your concatenate formula here>> )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hello Peacee,
Hope this helps:
Thanks for your response Pady,
Unfortunately this is just the same formula that I posted. It would not work if one of those date rows were blank. As stated at the start of my post, the formula works, it just doesn't work when there's a blank row. Since I can't remove the rows with a blank date, I need to find a way around it.
In case you are fine with the 'Text' data type for the new column, you can remove INT()
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!