Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
In excel I am using a formula =IF(AY2<>"NA",(AE2+AZ2),"OPEN") to replicate the same but when I use custom column in Power BI, I am not able to do so.
I want to add a Date type ("AE") column with text type column ("AZ") (containing numbers) but power BI is returning error.
I want to add numbers mentioned in columnn AZ and increment the dates in power BI.
Please help
Solved! Go to Solution.
Hi @Anonymous
You can try this, create a calculated column,
Column =
IF (
'Table'[Resolution Time] <> "NA",
( 'Table'[Logged Date] + 'Table'[Closure Days] ) & "",
"OPEN"
)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You can try this, create a calculated column,
Column =
IF (
'Table'[Resolution Time] <> "NA",
( 'Table'[Logged Date] + 'Table'[Closure Days] ) & "",
"OPEN"
)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Can you please guide why you concatenated "" in the "True" condition ? Just wante dunderstand for my knowledge.
Hi @Anonymous
( 'Table'[Logged Date] + 'Table'[Closure Days] ) & ""
it returns a date in text format, just like the format of "open". Otherwise, an error message will appear: Expressions that yield variant data-type cannot be used to define calculated columns. More information about this error, please see this link
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , In power bi Closure days should be number, if there is NA value, replace that with null (all small null) in power query
and then you can simply add dates to date
Closure Date = [logged of date] +[Closure days]
Thanks @amitchandak for your prompt answer. Please let me know how can we convert the remaining text values as null in that column.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
62 | |
46 | |
45 |