Login details in Power Query

Hi all - 
How can we get the details of login user dynamically in power query advanced editor.
Here is the scenario that I'm trying to solve. 
I have the list of employees and their details extracted from a database and published thru power query. I will share the query with all the employees that I have extracted. Now I want the employee to see his/her specific details only when they login and
run the query that I shared.
We can add a filter to our query in the advanced query editor, but the filter value should be  the logged on user. I need to know how can we get the logged on user details in the power query advanced editor.
Thanks for the help,
Deva.

I'm sure you're well aware of the requirement, but can I add my vote for a function that returns the Windows username of the person currently running the query? It would be very useful...
Chris
Check out my MS BI blog I also do
SSAS, PowerPivot, MDX and DAX consultancy
and run public SQL Server and BI training courses in the UK

Similar Messages

  • Unable to connect Power Query to Salesforce through custom domain

    If I try a straight login / connection through Power Query, I get "Your company's authentication service is currently down.  Please contact the administrator at your company for more information".
    If I try to connect via the Custom Domain, new box will pop up, opening up an IE window in Excel, where I can log in and it does connect me to my default page, but the Power Query connection does not connect.
    You can see the successful connection but the Salesforce connection in Power Query isn't made.  Is this a custom domain connection issue, a company security issue or a Saleforce connection bug?

    First off, I can never undestand how Microsoft can have these forums operate efficiently if just about ever response is entered as a duplicate entry.  Across many different forum channel, for years, I continue to see multiple entries, regardless of
    browser I'm using.  It just seems unprofessional and so counter productive to the image that Microsoft is trying to project, but that's a different rant.
    I'm in the process of getting some information on how our system is set up.  Working for a large company, local IT is good for somethings but when it comes down to system settings for global salesforce roll-outs, the team can only answer so much. 
    Until I discover the settings at my side, it's a bit early to have some mark a solution as answered if not all the facts are in.  Someone have some sort of strange forum quota for closures going on?
    Just curious.  There's this add-in that is supposed to let you connect to Saleforce, but may not connect to Production or Sandbox environment or custom domain because there's a choice?  I realize this is the first iteration and the video and description
    look good but how long before it becomes more versatile and open to more users whom might be in a similar situation?
    Don't get me wrong guys (and girls).  I love that this product and these various forums do exist to flush out problems of users and I sincerely appreciate the time and effort everyone puts into helping out where/when they can, but it is very much a
    sour grapes situation for me.  It's a bit like 1 step forward and 2 steps back.  It will be nice when we get to the final destination, I just hope it happens sooner, rather than later.

  • Power Query for Excel login/connection issue.

    Hi all
    I have recently installed Power Query for Microsoft Excel in MS Office 2013.
    I can connect successfully to the all the BI Universes, create queries & design reports in Excel.
    The problem that I have is that I can only do this with the Administrator account. The Admin account is the only account that can connect successfully to the BI universes.
    I have created test user accounts,test groups and assigned security to basically reflect the same rights as the Admin group, but to no avail.
    I have also assigned security to these users & groups on the application level (RESTful Web Service, Universes, Connections) , but no luck.
    It constantly says : "Access to the Resource is forbidden"
    The last thing I want to do is make the users part of the Administrator group. I'm sure you guys would agree that that would be like opening Pandora's Box

    Hi Liang,
    Power Query is part of Excel 2016 and can be found under the Data tab.
    Regards,
    M.

  • Connect to Linkedin API with Power Query

    Hello
    Is there a way to create Power Query queries that connect to Linkedin API permanently (like Power Query does with Facebook)? I know it is possible to access Linkedin API the way Shish Shridar did it, but it is pretty limited and thus frustrating (see his
    article entitled "Analyzing LinkedIn Data using PowerBI" on his blog).
    I am sorry to ask without more technical details, but I am pretty new to Power query. I guess it has something to do with OAuth2 authentification not being implemented in Power query...
    I would be delighted If someone would be kind enough to provide me some insight on this issue !

    Thanks for your answer.
    What if I create an app to get the required access token etc? I know an excel add-on could be considered as a Twitter app, and thus be able to connect to the website's API (I'm thinking about Analytics for Twitter 2013 for instance) - is there any way to
    do the same with Linkedin?
    I guess this is far beyond my capacities for now, but any insight would be very much appreciated !
    [EDIT]
    I did a little more research... I created a Linkedin app and then followed the steps described on the official documentation to enable it to make authenticated API calls to LinkedIn using OAuth 2.0 (I cannot use hyperlink for now, but here is the full link
    to the official doc : https://developer.linkedin.com/docs/oauth2)
    Maybe some VBA would be able to request an authorization code following this type of URL : https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=MYCLEINTID&state=STATE&redirect_uri=MYREDIRECTURL
    - Then the user will be presented with LinkedIn's authentication dialog box. Is VBA able to fill in this login form?
    -If it is, then it should get the code displayed in the redirection URL, which looks like :
    MYREDIRECTURL?code=THECODETOGETWITHVBA&state=STATE
    -If VBA could, then it just has to go to this new URL : https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&code=THECODETOGETWITHVBA&redirect_uri=MYREDIRECTURL&client_id=MYCLIENTID&state=STATE&client_secret=MYCLIENTSECRET
    -At this point, the last URL returns the access token, which could then be stored somewhere in Excel and thus used in Power Query (pretty easy to do using a headers like this:
    Headers=[#"Authorization"="Bearer Access Token"]])
    Hope someone will see this and tell me if it is feasible and likely to succeed.

  • Power Query/Data Management Gateway data refresh not working

    Pretty new to o365/Power BI, but here's what I've got going on (hopefully someone can help me out):
    I created a data management gateway and data source.  The data source says it's online in the PowerBI admin center, and it seems to be working correctly.  I can open Excel 2013 on my desktop (logging in as my trial o365 account which has Power
    BI associated with it) and connect to the data source via Power Query using the oData option.  I make sure to import the data into the model, and then open up the PowerPivot window and create a simple pivot table using the data in the model.
    that all works just great.  The problem comes when I upload the workbook and try to update it.  I've tried a few different ways.
    1. When I try to manually refresh the workbook by opening it in my o365 site and going to data-->refresh I get the following error:
          An error occurred while working on the Data Model in the workbook. Please try again.
          We were unable to refresh one or more data connections in this workbook.
          The following connections failed to refresh:
          Connection: Power Query - dbo_DimProductCategory
          Error: Out of line object 'DataSource', referring to ID(s) 'a75593f3-c34d-4f83-9458-49aa2cece164', has been specified but has not been used.
          The following system error occurred: Class not registered
          The provider 'Microsoft.Mashup.OleDb.1' is not registered.
          Power Query - dbo_DimProductCategory
    2. When I go into Power BI and go to "Schedule Data Refresh" for the workbook, I get the following error:
          Sorry, the data connections in this report aren’t supported for Scheduled Refresh.
          Technical Details â–¼
          Correlation ID: B3CE4B10-2137-E593-6FCF-189B73465190
          Date and Time: 03/31/2014 06:20:39 PM (UTC)
    Any help would be greatly appreciated.  If you need additional information, I'd be happy to provide it.

    Hey Guy,
    Thanks for the reply.
    The "data source type" of the data source in Power BI is "SQL Server" (there was only that and Oracle available to select from)
    The "data source type" that Power Query is using in Excel is "From oData Feed"....which is using the Power BI data source....which is using the data management gateway.
    A few follow up questions if you have a second
    1. Do you know when PowerQuery data refresh will be supported? (just a general idea....weeks, months, next year?)
    2. Is there any other way to connect to (and be able to refresh) PowerBI data sources referencing "on prem" data via the data management gateway?  I tried using the oData feed URL in non-PowerQuery areas of excel (excel data tab, PowerPivot directly)
    but it didn't work.  If there's some other way to connect to and refresh on prem data, i'm all ears :D 
    Really appreciate your help, thanks for taking the time.

  • POWER QUERY Get External Data From File From Folder (Excel 2013)

    Hi,
    Beginner's question :
    What could be the use of the query on a folder : we just get a list of files with their path. What can we do with that?
    Thanks

    Hi,
    Do you want to combine data from multiple Excel Files in the same folder path into one table? If I understand correct, we can add a custom column to import the data.
    After we getting a list of files with their path, the Query Editor window will activate to show you a table containing a record for each file in the chosen directory. These will provide our function with the needed FilePath and FileName parameters. 
    Function sample: File name([Folder path],[Field name]
    For more detailed steps, please see the article:
    http://datapigtechnologies.com/blog/index.php/using-power-query-to-combine-data-from-multiple-excel-files-into-one-table/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to use power query with sitecatalyst

    Hello,
    I need to use power query to import a table from sitecatalyst. Doing some tests I found that If remove the session from the url that has the report parameters, the app will redirect me to the login page, after entering the company, username and password
    it will load the report page with the data according to my filters.
    When I add the report url on the From Web option, excel does not allow me to add credentials. If I add the login+redirect url it allows me to add user/password but does not load the tables that appear on a regular browser.
    Is it possible to consume sitecatalyst without using Report Builder? If not, how you access the security info after you added the url.
    Thanks.

    To the best of my ability to tell, the right way to use this product from within Power Query would be to use its API. Unfortunately, we don't currently support either of the methods needed to be able to authenticate with the service (OAuth 2.0 and a relatively-custom
    digest-based method). Adding a mechanism to allow use of arbitrary OAuth-protected resources is a fairly high priority for us, and I hope we'll be able to deliver something before mid-2015.
    Scraping the website is very hard to do well -- both from an authentication and from a data discovery perspective.

  • Last login details in Apps 11i

    Hi All,
    Is there a script to find the last login details of a User in Oracle Apps 11i ?
    Thanks,

    Afia wrote:
    Hi All,
    Is there a script to find the last login details of a User in Oracle Apps 11i ?
    Thanks,Query FND_USER (LAST_LOGON_DATE column) -- http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_USER&c_owner=APPLSYS&c_type=TABLE
    Also, see old threads for the similar topic -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Connected+AND+Users&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Power Query for Excel - Need Help with Oracle SQL Syntax

    Hello everyone,
    I am new to Power Query and am not able to figure this out.  I am trying to pull in data into my Excel spreadsheet using a specific Oracle SQL query.  While in query editor, how do I take the Oracle.Database function and add my SQL statement? 
    I already know what I want, I don't want it to download all the table names.  According to the help page, I should be able to do this but it does not provide a syntax example
    Also, I don't understand what "optional options as nullable record" means.
    Below is what function and arguments the help page notes.  How do I use this?
    Oracle.Database(server as text, optional options as nullable record) as table
    Any help is greatly appreciated.
    Thank you,
    Jessica

    When I try this, I get an error 
    DataSource.Error: Oracle: Sql.Database does not support the query option 'Query' with value '"Select * from Owner.View_Name"'. Details: null
    I'm trying to download oracle data from a view into power query - Power Query navigator does not list th eviews from my source, it lists only the tables. When I try write sql statements, it throws me the above
    error. This is what I tried
     Oracle.Database("Source/Service",[Query="Select * from Owner.View_Name"])
    Any ideas how to fix this? 

  • Accessing portal login details in R3

    Hi ,
       I have the following situation . I have to give the customer , access to the data which is corresponding to his account only . The customer logs into the portal and will access the data through a transaction iview from the R3 screen . The R3 screen appears immediately after the customer login . This is basically a query screen where he will enter some query parameters and submit the same to R3 system which will fetch the result based on the query .Now how do I pass the login details of the customer to R3 as and when the customer logs into the portal .The R3 system should know immediately after the login that it has to display the data related to this cutomer account only and not of other customers , after the customer runs the query ? Please advice .
    Regards
    Deepak Singh

    Hi Deepak
    frst of all which login method u use UIDPW or SAPLOGONTICKET to login into R3 From portal.
    if SAPLOGONTICKET than portal and R3 User is same.
    if UIDPW than make sure that u mapped portal user to coressponding R3 User.
    now about user data it's all upon that Role attached to that user in R3 system.
    means u restricte the user to view other user data in R3 with authorization will same affect in Portal.
    regards,
    kaushal

  • Error connecting to BOBJ server from Power Query

    I am getting this error when I try to connect to the BO server from Power Query;
    DataSource.Error: SapBusinessObjects: Unable to connect to the remote server
    Details:
       here it lists my URL which this posts didn't allow me to have.
    I know my server is otherwise up and running.  No problem connecting to Launchpad or CMC or IDT. 
    This is the 1st time I am using Power Query.  What is missing?
    Abdul

    Hi,
    This is a generic error about not being able to reach the server.
    You should make sure that there are no typos in the hostname and to include the port number, which is 6405 by default.
    e.g: http://powerquerysap:6405/biprws
    Tristan

  • Where to find the timeout setting for connecting to SAP Bi Universe in Power Query for Excel

    Hi All,
    I am trying to connect a SAP BI Universe. I am able to login to the environment and get the list of folders. But on trying to use the universe inside the folder, I am getting a time out error. The time out happens exactly at 100 seconds always.
    DataSource.Error: SapBusinessObjects: The operation has timed out
    Can you let me know if any setting can be done to avoid this timeout and get the universe into power query?

    I have the same problem with Version: 2.17.3850.242. It times out after 100 seconds. 
    In addition, I couldn't report it by sending a frown. Get the following error message
    Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
    or one of its dependencies. The system cannot find the file specified.

  • Problem using Hadoop with Power Query

    I'm trying to connect my Power Query with Hadoop data.
    I can see a list of my hadoop files but when I click on "Binary"
    I have this error message.
    Error Details : - 
    DataSource.Error: HDFS cannot connect to server 'localhost'. Unable to connect to the remote server.
    Details:
        http://localhost:50070/webhdfs/v1/user/hue/nyse/stock_aggregates...

    It looks like WebHDFS isn't configured correctly. The way WebHDFS works is that you first connect to the name node and the name node does an HTTP redirect to the data node to fetch the data from there. From the error message, it looks like the
    redirect is happening to "localhost" instead of the name of the machine where the data block is stored.
    We're not really able to provide much help with configuring WebHDFS, as it's not software that people on the team use regularly.

  • 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

  • Trouble with power query as import facebook

    Hi I am using Windows 7 64 bit with Office 2013 Pro 64 bit. I am using the Microsoft power query add
    in  64 bit . 
    View comment of feed error follow:
    DataSource.Error: An unknown error occurred
    Details:
        https://graph.facebook.com/136807033073095/feed?limit=1000&until...
    Please help!

    Sorry it took so long for you to get any reply! Are you still having this issue? Could you please provide some more information about the steps you took to get the error?

Maybe you are looking for

  • There was an error opening this document.  The file is damaged and could not be repaired. Help!

    I got this message in the header after trying to open several different pdfs from several different sources so I am assumeing something is wrong with adobe and not the pdf's i am opening.  I need to open them for school!  Please help!  I've already t

  • Dreamweaver and Fireworks will not run

    when starting mx 2004 dreamweaver or fireworks, and immediate error message pops up: ERRO: Write File() The handle is invalid. the application failed to initialize properly (0xc0000142) Click ok to terminate application. flash works fine even after r

  • YouTube will not load in Safari or Chrome

    I'm using the latest version of Yosemite. I'm not sure how it happened, but now any embedded YouTube videos will not play in either Safari or Chrome. What's worse, when I go to the actual YouTube.com page, I see a bunch of textual gibberish and no gr

  • Document Type UB

    Hi Can it possible to assign document type UB to sto with delivery and sto without delivery at same time ?

  • Reciprocal Graph Scales

    I'm trying to plot an XY Graph with one of the scales (x-axis) set to the reciprocal of a variable.  I can plot this by calculating the values within an array, however the scales (as would be expected) now show the reciprocated value (ie. 1/value).