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.
Hi,
I am trying to create a column that will return the date from two columns if one is blank.
The two columns are Trans Date and Sett Date. Trans Date always has a date however i would like to use Sett Date unless it is Blank?
I have tried to create a column using this Dax
Solved! Go to Solution.
Hi. The error seems to be about one of those columns. Check their data type because one of them might be type text and the other date. Make sure they are both date (change them in the edit queries / transform data menu). You can read more about this here:
https://docs.microsoft.com/en-us/power-bi/desktop-data-types
After having the same data types your dax should work. However you mention you want to ask about blank, so you should try this:
NewColumn =
IF(
ISBLANK(Table[SETT_DATE]),
Table[TRANS_DATE],
Table[SETT_DATE]
)
Hope this helps,
Happy to help!
Hi. The error seems to be about one of those columns. Check their data type because one of them might be type text and the other date. Make sure they are both date (change them in the edit queries / transform data menu). You can read more about this here:
https://docs.microsoft.com/en-us/power-bi/desktop-data-types
After having the same data types your dax should work. However you mention you want to ask about blank, so you should try this:
NewColumn =
IF(
ISBLANK(Table[SETT_DATE]),
Table[TRANS_DATE],
Table[SETT_DATE]
)
Hope this helps,
Happy to help!
Thanks @ibarrau you were correct. One of the columns wasnt set as a date in the data type!
once i changed that my Dax worked!
Thanks!
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 |
---|---|
10 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |