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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Dev_B_PBIing
Frequent Visitor

Is current quarter flag

I'm having lots of issues omitting current quarter from my visuals.  I'm trying to accomplish this with a flag built from an already existing column called Fiscal year and quarter which has data in the format 2023Q4, 2023Q3, etc.  I'm trying for something like a calculated column that says:

 

If the 'fiscal year quarter' column matches year and quarter today 1, otherwise 0

 

I just cannot seem to get there on my own.

3 REPLIES 3
Ahmedx
Super User
Super User

Is this what you are looking for?

Screen Capture #1307.png

amitchandak
Super User
Super User

@Dev_B_PBIing , Create column in one of the ywo ways

 

Switch( True() ,
format(today(), "YYYY\QQ") = format([Date], "YYYY\QQ"), 1,
0
)

 

 

Or

 

 

Switch( True() ,
format(today(), "YYYY\QQ") = [Year Qtr], 1,
0
)

 

@amitchandak 

Using the second option is really close, but it's flagging the wrong quarter.  It flagged 2023 FQ2 aka Calendar quarter, I'm trying to filter to Fiscal Quarter...we're currently in FQ4 until July 2023.

 

Could a Dateadd +2 somehow be added to this measure to make it work?  Essentially this would always be filtering our current Fiscal quarter.

 

Dev_B_PBIing_1-1687456217593.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.