Transforming column content to a hyperlink in Power Query

I've been using a formula in Excel to give me redirect links like this:
=HYPERLINK(CONCATENATE("http://myurl.com/redirect/","/",A2),Fancy Title)
Is there a way to replicate this in Power Query?
Thanks,
Jes
JesB Office Store

Not directly, no. Once you've run the query, you can manually add a column to the result table in the worksheet of course. But at least for now, the added column would be lost when the data is refreshed.

Similar Messages

  • Power Query and multi-selection columns

    I have a power query pulling data from a sharepoint list some of the list columns allow multiple selections.
    The power query seems to only be pulling in one value instead of all the selected ones in the columns.
    Thanks,
    Eric

    Hi Eric,
    Just to add a bit more detail to what is going.
    In Power Query, SharePoint List columns with multiple selection choices are represented as nested tables with a single column called "Value". Each row of these nested tables will represent a selected choice for the list item. You can examine this by clicking
    on "Table" under the "Options" column on one of the rows.
    By clicking on the "Expand" icon of a column, you are making use of the Table.ExpandTableColumn function. That function will take each row in the table and do a cross product with the rows of the nested tables of the selected column. This means that each
    row will be duplicated as many times as there rows in the nested columns.
    In this specific case, each item in the SharePoint list will become duplicated as many times as there are selected choices for the item. This can be very useful in some cases, but I think that in your case this is not the operation that you're looking for.
    If you want to simply create a column that combines all the selected choices as a single text value, there's a simpler alternative to Alejandro's solution:
    = Table.AddColumn(RemovedColumns, "Options 2", each Text.Combine([Options][Value], ", "))
    You can simply paste the above as a blank step by clicking on the "Fx" icon next to the formula bar. Here we're creating a new column called "Options 2" that combines the text values in the "Value" column of the nested table of the Options column and separate
    each entry by ", ".
    -Tristan

  • Can I use Power Query to Import a table from Excel sheet range which starts not from the top row?

    Hi,
    Being an experienced Excel user before Power BI, I am just starting to explore the M and Power Query capabilities, and need help already (ain't easy to google this use case somehow):
    I need to import the table which sits in the Excel file with header row in the row 17 of Excel sheet, with some metadata header in the preceding rows of the columns A and B.
    01: Report name, Quick Report
    02: Report Date, 1/1/2014
    17: Employee Name, Manager, etc...
    18: John Doe, Matt Beaver, etc.
    Both (a) direct attempt to load as Excel file and (b) the indirect way through [From Folder] and formula in custom column -- both lead to the same error: "[DataFormat.Error] External table is not in the expected format."
    Specifically, I tried to use the [Power Query -> From File -> From Folder] functionality, select an Excel file and add a custom column to access the binary content: [Add Custom Column] with formula "=Excel.Workbook([Content])".
    It looks like Power Query expects a rectangular range with headers full-width followed by a contiguous table range to import anything, and refuses to load if that is not the case...
    QUESTION: Is there any way to load whatever-formatted data from Excel first, and then manipulate the overall imported range (like referring to rows starting from 17th using "Table.SelectRows" etc.) to read the actual data? Reading and using
    the metadata from header would be a bonus, but that comes second... The main issue is to get something from a non-regular Excel file to later work with using M formulae ...
    Thanks!
    SAM

    Finally found the answer to this one in ():
    You Cannot Open a Password-Protected Workbook
     If the Excel workbook is protected by a password, you
      cannot open it for data access, even by supplying the correct password with
      your connection settings, unless the workbook file is already open in the
      Microsoft Excel application. If you try, you receive the following error
      message:
    Could not decrypt file.
    ANSWER: So, will have either weave in the work with temporary unprotected files or requires opening them before updating the data source (although this almost defeats the purpose of automation...)
    ANSWER to ORIGINAL QUESTION: password was preventing Power Query from reading the Excel file. For solution see above.
    Thanks anyway for participation and inspiration, Imke!

  • Sharepoint 2013 web service to update column content

    I have a folder in a sharepoint list. Folder have columns ie Title, modified by, modified date, details. I am trying to update details column content with csharp code for that folder. I am trying to find sharepoint service method to update a column content
    for a list item.
    Added my sp site service ex: http://mysite/_vti_bin/Lists.asmx as reference
    I included service reference in my project and create object.
    I am referrring the below service to check if I can use any method from it but unable to find it. Do we have any method to 
    https://msdn.microsoft.com/en-us/library/ms774680(v=office.12).aspx
    Sri

    Hi Sri,
    Per my understanding, you might want to update item using Lists Web Service.
    In Lists.asmx, the methods available are as below:
    https://msdn.microsoft.com/en-us/library/lists.lists_members(v=office.12).aspx
    I suggest you follow the documentation below about updating list item using Lists Web Service for a try in your environment:
    https://msdn.microsoft.com/en-us/library/office/ms440289(v=office.14).aspx
    Thanks         
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How do I set the column content to automatic break lines

    Hello Guys,
    I have a problem with the column width and the column content of a standard report. Within the report are hugh entries which aren't interrupted by an space character. I set my column width to a special value by usingen "css style: display block; width: 300px;". Now the problem is that some of the column entries have a longer width than the column width is setted. So they overlock the entries of the column next to them.
    My question is: How do I set the column content to automatic break lines after a certain count of characters?
    After researching a couple of websites and discussion thread I found maybe a reference to the solution. I hope it help you to give me an answer.
    COLUMN LAST_NAME FORMAT A4
    regards
    wderr

    Wderr,
    PDFs are another animal entirely. Try adjusting the width of the column under the Print Attributes tab of the report.
    If that doesn't work you'll probably need to create custom XSL-FO layouts which, depending on the tools you have at your disposal, could take some time.
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/

  • POST http(s) request with xml content in Power Query

    I have a POST http request which works good in HttpRequester (Firefox plugin). I know that it is possible to call POST request in Power Query but cannot find working solution. Here is the original request:
    POST https://svcs.ebay.com/FeedbackService
    X-EBAY-SOA-OPERATION-NAME: createDSRSummaryByPeriod
    X-EBAY-SOA-SERVICE-VERSION: 1.0.0
    X-EBAY-SOA-SERVICE-NAME: FeedbackService
    X-EBAY-SOA-APP-NAME: ***
    X-EBAY-SOA-SITEID: 0
    X-EBAY-SOA-SECURITY-TOKEN: ***
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
    <dateRange>
    <dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
    <dateTo>2013-12-31T23:59:59.999Z</dateTo>
    </dateRange>
    <dateRangeEventType>ListingDate</dateRangeEventType>
    </createDSRSummaryByPeriodRequest>
    Power Query WebContent() function is capable to handle headers and xml content, however, there is no any documentation about its syntax.
    In Power Query I use this request:
    = Xml.Tables(Web.Contents(“https://svcs.ebay.com/FeedbackService”,
    [Headers =[" X-EBAY-SOA-OPERATION-NAME"= "createDSRSummaryByPeriod",
    "X-EBAY-SOA-SERVICE-VERSION="1.0.0",
    "X-EBAY-SOA-SERVICE-NAME"="FeedbackService",
    "X-EBAY-SOA-APP-NAME"="***","X-EBAY-SOA-SITEID"="0",
    "X-EBAY-SOA-SECURITY-TOKEN"="***"],
    Content=["<?xml version="1.0" encoding="UTF-8"?>
    <createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
    <dateRange>
    <dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
    <dateTo>2013-12-31T23:59:59.999Z</dateTo>
    </dateRange>
    <dateRangeEventType>ListingDate</dateRangeEventType>
    </createDSRSummaryByPeriodRequest>"]]))
    However, it returns "Expression.SyntaxError: Invalid identifier." Maybe anyone has at least examples of analogous working syntax?

    Task is solved. First of all I updated PowerQuery since previous version does not support Headers option for Web.Contents function. Here is a correct syntax:
    =Xml.Document(Web.Contents("https://api.ebay.com/ws/api.dll",[Headers=[#"X-EBAY-API-COMPATIBILITY-LEVEL"= "871",#"X-EBAY-API-SITEID"="0",#"X-EBAY-API-CALL-NAME"="GetMyeBaySelling",#"CONTENT-TYPE"="text/xml"], Content=Text.ToBinary("<?xml version="&Character.FromNumber(34)&"1.0"&Character.FromNumber(34)&" encoding="&Character.FromNumber(34)&"utf-8"&Character.FromNumber(34)&"?>
    <GetMyeBaySellingRequest xmlns="&Character.FromNumber(34)&"urn:ebay:apis:eBLBaseComponents"&Character.FromNumber(34)&">
    <RequesterCredentials><eBayAuthToken>***</eBayAuthToken></RequesterCredentials><SoldList><DurationInDays>60</DurationInDays><Pagination><EntriesPerPage>100</EntriesPerPage><PageNumber>1</PageNumber></Pagination></SoldList></GetMyeBaySellingRequest>")]))

  • Lookup column names with Power Query

    Hi,
    before I go ahead and change source files, I was wondering if I can use Power Query to get a model with the following data. To simplify the example, I have the following dataset in an Excel sheet:
    In another Excel sheet, the column names are defined, for example:
    What would like to have in Power Query is one table with the column names from the second screenshot in column B. Is there a way to link these two tables together in Power Query in order to use these names as column headers in the dataset?
    Thanks!
    - If a post answers your question, please click "Mark As Answer" on that post!

    You can filter the list of renames against the list of actual column names with something like
        FilteredColumns = Table.SelectRows(Columns, each List.Contains(Table.ColumnNames(Source), [Name])),
    Again, the working end-to-end:
    let
    Source = Table.FromRows({{"New York", 23, 51, 732}, {"Chicago", 25, 421, 23}, {"Los Angeles", 632, 22, 423}}, {"City", "Col 1", "Col 2", "Col 3"}),
    Columns = Table.FromRows({{"Col 1", "Column 1"}, {"Col 2", "Column 2"}, {"Col 3", "Column 3"}, {"Col 4", "Column 4"}}, {"Name", "Value"}),
    FilteredColumns = Table.SelectRows(Columns, each List.Contains(Table.ColumnNames(Source), [Name])),
    ColumnsAsRenames = Table.TransformRows(FilteredColumns, Record.FieldValues),
    RenamedColumns = Table.RenameColumns(Source, ColumnsAsRenames)
    in
    RenamedColumns

  • Failure while unmarshalling message: Failed to transform MFL content

    hi ,
    I am performing Flat to XML message transformation using OSB.
    I have made a MFL using format builder and imported that MFL into my proxy service (Request Message type).
    now when i am trying to run my proxy service.its Showing error "Failure while unmarshalling message: Failed to transform MFL content from binary to XML".
    I have tested my MFL Using format tester and it is giving desired transformed output(FLAT to XML).
    Please let me know if anybody knows the possible cause.
    Thanks in advance.

    http://biemond.blogspot.com/2008/12/flat-file-to-xml-with-oracle-service.html
    OSB: issue with MFLTransform: Error transforming CSV file to XML
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=867859
    Regards,
    Anuj

  • Open Link in new window, when field or column type is of Hyperlink

    Hi
    I have created a column by name Registration of 'Hyperlink or picture' type, and i want to open the link entered by the user in the new window as it is opening in the same window by default.
    Please help its a very major requirement.
    Thanks
    Paru

    Create a Site column of type “Hyperlink with formatting and constraints for publishing”
    (Site Actions -> Site settings -> Site columns -> Create )
    Add this Site column in your new list
    (List Settings -> Add from existing site columns)
     http://ashishnjain.wordpress.com/2012/06/06/sharepoint-links-list-to-open-in-a-new-window
    OR try
    1. Open Site in SharePoint Designer 2010
    2. Click on Lists and Libraries
    3. Click on the List Name
    4. Click on the View Name "All Items"
    5. Double click one of the links inside column which contains the HyperLink
    6. Tag Properties change "target" Value from _self to _blank
    http://social.msdn.microsoft.com/Forums/en-US/99e9559a-da76-4722-982c-882b3e4181c7/hyperlink-column-type-open-in-new-window
    http://suryapulipati.blogspot.in/2011/12/open-hyperlink-in-new-window-in.html

  • Is it possible to scale a text box by % but also transform the contents?

    Is it possible to scale a text box by % but also transform the contents?
    Object > Transform > Scale only transforms the box.
    Grabbing and dragging a corner while holding shift/ctrl is not accurate enough.
    Thanks

    Object > Transform > Scale only transforms the box.
    Object -> Transform -> Scale of 200% when applied to a text frame full of text works here: frame doubles in size, text doubles in font size.  (CS5.5. and CS6 on Win7)  It works on images, too.
    In fact, I almost can't reproduce the behavior you report at all. The exception is this: If in CS5.5. I fill a frame with text, and then select the frame with the Direct Select tool (the white arrow) and use Object -> Transform -> Scale, then just the frame changes in size, and the text doesn't change. When you select the frame, which selection tool are you using?

  • Problem encountered on the FM fo the New column content

    Hello Gurus,
       I am still new to the enterprise portal content delvelopment and also still don't have much idea on this.
    One of our abapers developed a FM serves as the column content for one of the newly created field in the 'My Staff - ECM' - 'Promotion' Iview. Upon running the page, we encountered the following error message:
    <b><i>An error occurred: com.sap.pct.hcm.ecm.ApplicationException: Error in the module RSQL accessing the database interface. &INCLUDE &P9, error key: RFC_ERROR_SYSTEM_FAILURE</i></b>
    Can somebody explain to me what's the cause of this?
    Thank you very much,
    Jeff

    Hi Jeffrey,
    Did you got the solution of the problem as I am also facing the same problem.
    Regards
    Debasish

  • Hide/Show the column content

    Hi Guys,
    Is it possible to show /hide the column contents on particular conditions for a dataTable??
    In other words, there may be a situation where I wanted to hide the object for row1 but not for row2
    I tried with setRendered method. But the problem I am facing is for all row values the last condition is applying
    Please let me know the answer at earliest. Otherwise any alternate solution is also OK
    Thanks
    Sudhakar

    Hi JIM,
    Thanks for reply.
    Yesterday only I got the answer. Thought to post my idea here but got delayed.
    After posting this question, I did some investigation on how dataTable component works.
    Instead of using DefaultDataTableModel i have binded my own bean array which has pre computed values.
    Now it is working fine
    Thanks & Best Regards
    Sudhakar Chavali

  • Power Query - How to format options for Web.Content()?

    I am trying to access a web api which can return data in either JSON or XML. When connecting with Power Query I get a "400, Bad request" error though and I suspect it could be due to Power Query not explicitly providing accepted Content-Types
    in the request. Anyone know how to add options to the Web.Content() request?
    http://office.microsoft.com/en-001/excel-help/web-contents-HA104112310.aspx
    Thanks!

    I believe the default reponse content-type is JSON. It doesn't serve Power Query with anything but an error response though and with the help of Network Monitor I caught a bit more details (in Swedish).
    Request:
    Http: Request, GET /platsannons/matchning, Query:lanid=1
    Command: GET
    + URI: /platsannons/matchning?lanid=1
    ProtocolVersion: HTTP/1.1
    Accept: */*
    UserAgent: Mozilla/5.0 (compatible; Microsoft.Data.Mashup; http://go.microsoft.com/fwlink/?LinkID=304225)
    Host: api.arbetsformedlingen.se
    Accept-Encoding: gzip, deflate
    Connection: Keep-Alive
    HeaderEnd: CRLF
    Response:
    HTTPPayloadLine: {"Error":{"statuskod":400,"titel":"Bad Request","beskrivning":"Felaktig headerparameter: [Accept-Language]"}}
    And the API can be found at:
    http://api.arbetsformedlingen.se/
    Would be great to be able to define custom headers to the request through options for cases like these. Thanks for the reply!
    Best regards,
    Daniel

  • Transform columns to rows

    Hi, I would like transform columns to rows.
    i.e. source table:
    colA colB colC colD colE colX
    aa bb cc dd ee 1
    ff gg hh ii jj 2
    ..and output table-solution:
    colText colValue colX
    colA aa 1
    colB bb 1
    colC cc 1
    colD dd 1
    colE ee 1
    colA ff 2
    colB gg 2
    colC hh 2
    colD ii 2
    colE jj 2
    It's possible do it only with select - it would be the best solution.
    Thanks zdenek T.

    Here is another way.
    SQL> DESC MYTABLE
    Name                                      Null?    Type
    COLA                                               VARCHAR2(20)
    COLB                                               VARCHAR2(20)
    COLC                                               VARCHAR2(20)
    COLD                                               VARCHAR2(20)
    COLE                                               VARCHAR2(20)
    COLX                                               VARCHAR2(20)
    SQL> SELECT * FROM MYTABLE;
    COLA                 COLB                 COLC
    COLD                 COLE                 COLX
    aa                   bb                   cc
    dd                   ee                   1
    ff                   gg                   hh
    ii                   jj                   2
      1  SELECT COLUMN_NAME,DECODE(COLUMN_ID,1,COLA,2,COLB,3,COLC,4,COLD,5,COLE),COLX
      2  FROM MYTABLE M,USER_TAB_COLUMNS U
      3  WHERE TABLE_NAME = 'MYTABLE'
      4  AND COLUMN_NAME <> 'COLX'
      5* ORDER BY 2,3
    SQL> /
    COLUMN_NAME                    DECODE(COLUMN_ID,1,C COLX
    COLA                           aa                   1
    COLB                           bb                   1
    COLC                           cc                   1
    COLD                           dd                   1
    COLE                           ee                   1
    COLA                           ff                   2
    COLB                           gg                   2
    COLC                           hh                   2
    COLD                           ii                   2
    COLE                           jj                   2
    10 rows selected.

  • Create custom column in power query

    Hello All,
    I have a requirement to create report for the Analysis, my raw data looks like below which I'm extracting from multiple tables. I would like to extract project wise number count  based on status, my idea is to create custom columns to write the value
    if the value matches to the condition else blank. Example my status has multiple status value ( closed, on-hold,warranty,inprogress,etc) i need to know what formula will help me extract data in different columns so that i can get the count in pivot for each
    status)
    NUMBER         CATEGORY                                Internal SLA  
        EXTERNALSLA      DATE_ENTERED    STATUS
    C1000001    HEINEKEN                                    t             
                     t                  9/13/2014            CLOSED
    C1000002    Migration-BLACKROCK AppV                                                           
    2/11/2015    Terminated
    C1000004    Migration-BLACKROCK AppV                                                          
    10/24/2014    CLOSED
    C1000005    Migration-BLACKROCK AppV        t                                  t  
                  1/12/2015    On-Hold
    C1000006    Migration-BLACKROCK AppV                                                  
             11/5/2014    CLOSED
    C1000007    Migration-BLACKROCK AppV    t                                       
    t               9/12/2014    CLOSED
    C1000008    Migration-BLACKROCK AppV                                                              
    8/6/2014    On-Hold
    C1000009    BLACKROCK                                                                                      
    8/5/2014    In Progress
    C1000010    Migration-BLACKROCK AppV    t                                          t  
                  8/5/2014    On-Hold
    C1000011    Migration-BLACKROCK AppV                                                              
    10/25/2014    CLOSED
    C1000012    BLACKROCK                                                                                        
    9/24/2014    CLOSED
    C1000013    BLACKROCK                                                                                      
    10/16/2014    Terminated
    C1000015    BLACKROCK                                                                                        
    9/1/2014    In Progress

    Hi Imke,
    I have achieved what i wanted to... I did try the way you have suggested. But end result was not fruitful.
    I did following for status wise count.
    Step1: In power query I have created duplicate status column for each status available.( Example I have status {closed,open,initial... etc} I have created duplicate column for each status and replaced with null.For closed Except closed all i replaced in
    column with null).
    Step2: So every time my power query data refreshes it does that step each time so that i can get the count of each status column wise in my pivot table.
    I have attached the result,
    Harsha

Maybe you are looking for

  • VENDOR is mapped to the dialog column (USAGE_VENDOR) that does not exist

    Hello, I'm trying to install Solman 4.0 Unicode.  When I start sapinst and select a Central System, I get an error before it even gets to the point where I can input some parameters.  The error is below, has anyone experienced this?  Thank you. ~TJ E

  • Sizing the HTML client's content area above the footer

    As I'm fairly new to the intricacies of the HTML client, I've a simple question with hopefully a simple answer. Having designed the following screen (containing a custom scheduling control above a standard LS table) I've found that the footer (class:

  • How to change long - int ?

    i have a retrieved a long " long koko = files.length(); " witch i need to represent in integer for "fis.read(id3test, koko, 20);" if someone could help me i would really be glad.... ... thanks in advance.

  • Remove spellechecker dictionaries in Firefox

    Hello community, I need spellchecking in three languages in Firefox: English, German and Russian. Thus I installed the appropriate hunspell packages extra/hunspell-de, extra/hunspell-en and aur/hunspell-ru. But unfortunately each of them seems to inc

  • Unable to access my iCloud account from any device?

    I am unable to log into my iCloud account through the web and apps on iOS and OS X that's connected to iCloud... Now I'm being disconnected from already logged in apps and is making reenter my password, but even when I do, it gives me an error. On th