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
snifer
Post Patron
Post Patron

how take in consideration just month?

I want to create a column that give me True or false for this condition in screenshot

 

 

Problem is i want to know if just month it is different not day, how I can do it?Capture.PNG

1 ACCEPTED SOLUTION

In that case, Create two custom column to extract month & year.

Date.Month(Datefield1)&" " Date.Year(Datefield1).
Similarly for another Date field

Use these two columns in the condition. Hope it will help you better!

View solution in original post

3 REPLIES 3
SivaMani
Resident Rockstar
Resident Rockstar

@snifer,

 

It's simple. Just have a look about Conditional Column,

 

Conditional Column.PNG

 

Otherwise,

 

Use this code - if [your condition] then true else false

hi, how I can specify to take in considerartion just the month?

In that case, Create two custom column to extract month & year.

Date.Month(Datefield1)&" " Date.Year(Datefield1).
Similarly for another Date field

Use these two columns in the condition. Hope it will help you better!

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.