Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Peacee
New Member

INT CONCATENATE not working on a column with blanks

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:

Peacee_0-1693597019931.png

 

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:

Peacee_1-1693597033807.png

 

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!

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

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())

 

 

 

 

View solution in original post

7 REPLIES 7
Ahmedx
Super User
Super User

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! 🙂

parry2k
Super User
Super User

@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.

Pady
Helper II
Helper II

Hello Peacee,

Hope this helps:

Pady_0-1693601523748.png

 

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()

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors