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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.