Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Aamir_khan
Advocate V
Advocate V

Need urgent help Dax

Hi All,

 

I have years data from 2019 Dec to Jan 2021 I have used below query but I am not getting 2021 in the report

 

I need help on the following dax Month Date = If(day([Date])<=10, eomonth([Date],-1), eomonth([Date],0))

 

from 2019 to 2020 is correct but I am not getting 2021from 2019 to 2020 is correct but I am not getting 2021

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @Aamir_khan,

 

I can’t reproduce the error in my environment, the dax worked in my environment.
Here is the output:

v-xulin-mstf_1-1611129666745.png

 

Could you provide your sample data?

 

Best Regards,

Link

ryan_mayu
Super User
Super User

@Aamir_khan 

I didn't see date colum in your screenshot. Do you have data that is bigger than 2021/1/10?

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




VijayP
Super User
Super User

@Aamir_khan 

Some how I am getting when i tried with a sample Data. Just check whether you have dates in 2021?




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.