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
syaiful_fcpc
Frequent Visitor

Getting Status of My Date if it within this month and 2 previous month

Hi Powerbi Rangers

 

I need some of ur help .


I have this table 

Plan StuffingResult
30-Oct-23Other Month
17-Nov-233 Month
18-Nov-233 Month
22-Nov-233 Month
07-Des-233 Month
08-Des-233 Month
09-Des-233 Month
07-Jan-243 Month
08-Jan-243 Month
09-Jan-243 Month

 

i want to create a column similiar with result column, if date within Plan Stuffing is current month and 2 month before this current month then give remark "3 Month", else "Other Month" 

Thanks 
Syaiful

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@syaiful_fcpc,

 

Try this calculated column:

 

Result = 
VAR vPlanStuffing = Table1[Plan Stuffing]
VAR vComparisonDate =
    EOMONTH ( TODAY (), -3 )
VAR vResult =
    IF ( vPlanStuffing > vComparisonDate, "3 Month", "Other Month" )
RETURN
    vResult

 

DataInsights_0-1704832003981.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
syaiful_fcpc
Frequent Visitor

Thanks bro

DataInsights
Super User
Super User

@syaiful_fcpc,

 

Try this calculated column:

 

Result = 
VAR vPlanStuffing = Table1[Plan Stuffing]
VAR vComparisonDate =
    EOMONTH ( TODAY (), -3 )
VAR vResult =
    IF ( vPlanStuffing > vComparisonDate, "3 Month", "Other Month" )
RETURN
    vResult

 

DataInsights_0-1704832003981.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.