Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have data with year and month in separate columns in number format, I would like to exploit those rather than the invoicing date field (for sales cutoff consideration).
How can this be achieved ?
I have tried a solution I found suggested in this topice Solved: Converting from Month Name and Year to Date - Microsoft Power BI Community which is to create these 2 additional columns:
MonthNum = SWITCH([Month],"January",1,"February",2,"March",3) Date = EOMONTH(DATE([Year],[MonthNum],1),0)
But I have the following result
So I have changed my year and month columns from number to text format but that didn't make adifference.
Can you please help ?
thank you
Hi , @debutant
According to your dax , i think there is no problem.
This is my test dax:
Column = EOMONTH( DATE([Year],[Month],1) , 0)
The result is as follows:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi
I think the most simple is to create a date table with date, month year etc..; and link it to your fact table
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |