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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
YasminYas
Helper I
Helper I

Column

I have 4 date columns along with ID Column
completed date

assigned date
approved date
Originated date
I want to calculate like 
IF(Completed date is blank() then Assigned date,Completed date)
If (Assigned date is blank() then approved date,Assigned date)
if (approved date is blank() then Originated date , approved date ) for each ID


How can i calculate in Dax 
Please help
TATA.PNG

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@YasminYas 

 

try this column

 

Calc Column =
SWITCH (
    FALSE (),
    ISBLANK ( [Completed date] ), [Completed date],
    ISBLANK ( [Assigned date] ), [Assigned date],
    ISBLANK ( [Approved date] ), [Approved date],
    ISBLANK ( [Originated date] ), [Originated date]
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@YasminYas 

 

try this column

 

Calc Column =
SWITCH (
    FALSE (),
    ISBLANK ( [Completed date] ), [Completed date],
    ISBLANK ( [Assigned date] ), [Assigned date],
    ISBLANK ( [Approved date] ), [Approved date],
    ISBLANK ( [Originated date] ), [Originated date]
)

Thanks 🙂
This worked perfectly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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