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
cristianml
Post Prodigy
Post Prodigy

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-yanjiang-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-yanjiang-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.

VahidDM
Super User
Super User

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
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.