Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
120 | |
74 | |
72 | |
58 | |
50 |
User | Count |
---|---|
167 | |
83 | |
68 | |
66 | |
55 |