cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cristianml
Post Patron
Post Patron

If Date equal to Month Then

Hi,

 

I need a measure that can give "MTD" when :

> IF The month of the "As of Date" IS THE SAME to the month of the date from Calendar table then "MTD" else blank.

 

I tried to do someting like the following measure in the column but is like is not working.

 

MTD = IF(EOMONTH([As Of] = EOMONTH('Calendar'[Date),"MTD",BLANK())))))))

 

cristianml_2-1634851251870.png

 

 

cristianml_1-1634850941424.png

 

cristianml_0-1634851573940.png

 

Thanks

 

1 ACCEPTED SOLUTION
v-kalyj-msft
Community Support
Community Support

Hi @cristianml,

According to your description, here’s my solution.

vkalyjmsft_0-1635144591031.png

vkalyjmsft_4-1635144659905.png

If you want the year and month of the "As of Date" is the same to the year and month of the date from Calendar, you can try like this:

vkalyjmsft_1-1635144591036.png

 

Best Regards,
Community Support Team _ kalyj


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-kalyj-msft
Community Support
Community Support

Hi @cristianml,

According to your description, here’s my solution.

vkalyjmsft_0-1635144591031.png

vkalyjmsft_4-1635144659905.png

If you want the year and month of the "As of Date" is the same to the year and month of the date from Calendar, you can try like this:

vkalyjmsft_1-1635144591036.png

 

Best Regards,
Community Support Team _ kalyj


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

VahidDM
Community Champion
Community Champion

Hi @cristianml 

Is that [As Of] from different table? can you share a sample of your tables and show tell us the relationship between those tables?

 

Appreciate your Kudos!!

 

Hi, @VahidDM 

 

"As of" is a table, this is not related with any other table,  is a separated table and also this is a measure so can be used in the other measure I need: 

 

 

As of TABLE

cristianml_0-1634859674082.png

cristianml_4-1634859777179.png

cristianml_1-1634859707382.png

 

 

 

AS OF Measure

cristianml_3-1634859758095.png

 

cristianml_2-1634859739345.png

 

 

 

 

 

 

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.