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 Team,
I have created visual for last 3 months data using below dax. here i want to exclude current month data.
Thnaks
Narasimha Reddy
Solved! Go to Solution.
sorry, my mistake!
Replace ">=" with ">". The equal sign is not needed as it returns TRUE() on the last day of the month in March. Formula then is:
3Months = IF(Data[Date] > EOMONTH(TODAY();-4) && Data[Date] < EOMONTH(TODAY();-1); TRUE(); FALSE())
Greetings
JJ
How about
3Months = IF(Data[Date] >= EOMONTH(TODAY();-4) && Data[Date] < EOMONTH(TODAY();-1); TRUE(); FALSE())
Hope this helps!
JJ
Thanks for quick response..
With your DAX formula, Am getting below results.
In the above Visual, I am getting extra month i/e Mar'2017 data as well. I need to exclude Mar'2017 data.
Thanks
Narasimha Reddy
sorry, my mistake!
Replace ">=" with ">". The equal sign is not needed as it returns TRUE() on the last day of the month in March. Formula then is:
3Months = IF(Data[Date] > EOMONTH(TODAY();-4) && Data[Date] < EOMONTH(TODAY();-1); TRUE(); FALSE())
Greetings
JJ
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 | |
36 | |
30 |
User | Count |
---|---|
79 | |
66 | |
45 | |
44 | |
42 |