cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Himanshu_1306
Resolver I
Resolver I

Calculated Column

Hi All,

 

I'm trying to create a calculated column for Current Quarter from my Date column but its giving me incorrect data.

Any help where I'm going wrong?

 

I have the below tables in my dataset which I can use.

 

Himanshu_1306_0-1669880693516.png

 

I'm trying to make a column like below but its not giving me correct value

 

IsCurrentQuarter =
    IF (
        YEAR ( ACV[CLOSE_DATE] ) = YEAR ( TODAY () )
            && QUARTER(ACV[CLOSE_DATE] ) = QUARTER( TODAY()),
        "Yes",
        "No"
    )

 

 

Regards,

Himanshu

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Himanshu_1306 , Seem fine, Try like

 

Switch( True() ,

format(today(), "YYYY - \QQ") = format([Date], "YYYY - \QQ"), "This Qtr",

[Qtr Year]

)

 

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Himanshu_1306 , Seem fine, Try like

 

Switch( True() ,

format(today(), "YYYY - \QQ") = format([Date], "YYYY - \QQ"), "This Qtr",

[Qtr Year]

)

 

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors