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 have the data in in this format. I have several columns for dates; Invoice1 date, Invoice2 date, for a total of 12 dates. Each month and date for these 12 dates is in different columns as in the chart below. I wanted to create a date for each of the dates to be simple like 1/1/2022.
I tried doing this with =1*("1/"&'date'[Month]&"/"&'date'[Year]) but got the below errors.
Then I tried "=format(Date" formula but got the below error.
Is there a way to do this?
Also, I have a seperate calendar built for the next two years. I want to place a chart view so I can see I have 3 invoices due in March 2023. This would be building a relationship with the calendar and the dataset above. How can I structure this so it works that I can see the 3 invoices thare due in March or 6 invoices in April. Sort of like a timeline.
Thank you for your help.
Thank you.
Solved! Go to Solution.
HI @dineshj23,
You can use the following calculated column formula to concatenate the year month and convert the result to date:
Transform Date =
DATEVALUE ( [Month] & "/1/" & [Year] )
Regards,
Xiaoxin Sheng
Hi @Anonymous
I used the formula you sent above and got this error.
Hi @dineshj23,
My formula is creating a new column on your table to invoke the year and month fields and use DATEVALUE function of convert the concatenate values to date format.
Did these fields include blank values? If that is the case, you can add condition to check them at first and setting a default value as if statement false branch result.(in my formula, I used the current system date as default value)
Transform Date =
IF (
Table[Month] <> BLANK ()
&& Table[Year] <> BLANK (),
DATEVALUE ( Table[Month] & "/1/" & Table[Year] ),
TODAY ()
)
Regards,
Xiaoxin Sheng
HI @dineshj23,
You can use the following calculated column formula to concatenate the year month and convert the result to date:
Transform Date =
DATEVALUE ( [Month] & "/1/" & [Year] )
Regards,
Xiaoxin Sheng
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 |
---|---|
58 | |
55 | |
55 | |
37 | |
30 |
User | Count |
---|---|
78 | |
64 | |
45 | |
42 | |
40 |