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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ashmitp869
Helper II
Helper II

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

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.