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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
esero88
Frequent Visitor

how do you tag specific periods by using Power BI Calendar?

Hello,

 

I need to create a calculated column in order to tag months. However, these months have to be tagged according to several conditions;

 

Example: for January it has to include the last 15 days of January and the first 15 days of February

 

Or for February it has to include the last 15 days of February and the first 15 days of March etc.

 

I have written a DAX code but it always returns blank values. So please can help me?

 

DAX: 

 

MonthExec =
IF(
    AND([DayOfMonth] >= 15, [MonthOfYear] IN {1}),
    IF(
        AND([DayOfMonth] < 15, [MonthOfYear] IN {2}),
        "Jan",
        IF(
            AND([DayOfMonth] >= 15,[MonthOfYear] IN {2}),
            IF(
                AND([DayOfMonth] < 15, [MonthOfYear] IN {3}),
                "Feb"
            )
        )
    )
)
 
 

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

Column =
 FORMAT( 'Table'[Date]-15,"mmmm")
Screenshot_1.png

 

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

pls try this

Column =
 FORMAT( 'Table'[Date]-15,"mmmm")
Screenshot_1.png

 

@Ahmedx that solved my problem. Thanks for your reply.  Kudos

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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