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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Assign dynamic Flags for months

I have data from 2020 Jan to 2025, I would like to give flag by month wise if it is current month 0, other months in same year or previous months or futures months according to current month flag. If we consider March as a current month now, it should how flag as 0 for future or past month it should show as below. Please help me

 

ex:  DD/MM/YY

       01/12/2022    -3

        01/01/2023    -2

        01/02/2023    -1

        01/03/2023      0

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

1 REPLY 1
Ahmedx
Super User
Super User

you can try this

Screenshot_4.png

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors