Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
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 |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |