Forum Discussion

Jays_D's avatar
Jays_D
Icon for Advocate II rankAdvocate II
3 years ago
Solved

Pulling a value from multiline text into a custom column

Hi All,   I have a "Comments" box in a Power BI dashboard which has multiple lines of text that get added to it from a Power App.   Each new line is prefixed with date and user name then their te...
  • rubayatyasmin's avatar
    3 years ago

    Jays_D Or alternatively create three calculated column, 

     

    //checks if the column has checked value

    HasChecked = CONTAINSSTRING(jobs[jobcomments], "**Checked**")

     

    // for date 

    Date =
    IF(
    jobs[HasChecked] = TRUE,
    LEFT(jobs[jobcomments],10),
    BLANK()
    )

     

    //for user name

    UserName =
    IF(
    jobs[HasChecked] = TRUE,
    MID(
    jobs[jobcomments],
    12,
    SEARCH(":", jobs[jobcomments], 12, LEN(jobs[jobcomments])) - 12
    ),
    BLANK()
    )