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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
ashmitp869
Post Partisan
Post Partisan

Date field change to text - when merge two tables using python code fro transform purpose ?

Hi All,

Need suggestion in data manipilation using python. I need to identify the Employee is qualified for training or not in DSR_DNQ table depending on certain condition from Qualification table.

So I merge two tables with python to transform and shape the data but the datefields are all text.

How to change the format ?

ashmitp869_0-1715565515694.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@ashmitp869 , I do not see any dates in the Start and end dates. Seem like format issue. If that not working bring them as text and format them in Power Query

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi  ,I can't do this in power query as my ultimate goal is to merge two dataset and put this condition which depends on two table.

 

 

  1. Qualified =

    CASE WHEN Timesheet Date >=Date Start && Timesheet Date <= Date End Comments contains “L” then “Learner”

     

     
         WHEN Timesheet Date >= Date Start && Timesheet Date <= Date Expiry then "Qualified"
    
         WHEN Timesheet Date >=Date End && Date Expiry = null then "Not Qualified"
    
         WHEN Timesheet Date < Date Start then "Learner"

    I had raise this before but didn't got any reply.

    https://community.fabric.microsoft.com/t5/Desktop/Help-me-to-build-a-measures-from-two-different-tab...

@amitchandak

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.