No video

USERNAME, USEROBJECTID, USERPRINCIPALNAME, CUSTOMDATA, USERCULTURE - DAX Guide

  Рет қаралды 7,650

SQLBI

SQLBI

Күн бұрын

USERNAME: Returns the domain name and user name of the current connection with the format of domain-nameuser-name.
dax.guide/user...
USEROBJECTID: Returns the current user’s Object ID from Azure AD for Azure Analysis Server and the current user’s SID for on-premise Analysis Server.
dax.guide/user...
USERPRINCIPALNAME: Returns the user principal name.
dax.guide/user...
CUSTOMDATA: Returns the value of the CustomData connection string property if defined; otherwise, BLANK().
dax.guide/cust...
USERCULTURE: Returns the culture code for the user, based on their operating system or browser settings.
dax.guide/user...
This video is part of DAX Guide, the online guide to all the DAX functions, with links to related content and compatibility matrix with all the versions of Power BI, Azure Analysis Services (AAS), SQL Server Analysis Services (SSAS), SQL Server Data Tools (SSDT), and Power Pivot for Excel.

How to learn DAX: www.sqlbi.com/...
The definitive guide to DAX: www.sqlbi.com/...
Code, run, and share DAX with DAX.do: dax.do/?aff=yt

#dax #powerbi #ssas #tabular #analysisservices #powerpivot

Пікірлер: 13
@IconicLemon
@IconicLemon Жыл бұрын
Great video thanks, @ 1:31, you have blurred out UserObjectID but when you have hovered the mouse over the output you can see the full string.
@SQLBI
@SQLBI Жыл бұрын
Thanks for reporting it! The value is a local ID so it's not really important, so we decided it was not worth the remaster the video (which would lose the original link). Thanks again!
@rvgfox
@rvgfox Жыл бұрын
Great Alberto ! Is it possible to use the CUSTOMDATA in the connection string in one query in Power Query?
@SANJIVRAI6693
@SANJIVRAI6693 Жыл бұрын
Is there any way to get the domain "SNOW" from the username in Services (Publish version)
@SQLBI
@SQLBI Жыл бұрын
Services uses AD username, not the domain.
@comptegmail273
@comptegmail273 Жыл бұрын
do you know how can I retrieve the user's microsoft account profile picture ?
@SQLBI
@SQLBI Жыл бұрын
Probably through this API, certainly not in DAX! learn.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0
@comptegmail273
@comptegmail273 Жыл бұрын
@@SQLBI I will look through that thank you
@1yyymmmddd
@1yyymmmddd Жыл бұрын
It looks like USERNAME() although works fine in Desktop, is not working in the Service :)
@SQLBI
@SQLBI Жыл бұрын
It should work - it is designed for the Service!
@1yyymmmddd
@1yyymmmddd Жыл бұрын
@@SQLBI It does not display USERNAME() value in a card. Shows Error in Service, although in Desktop it displays correct value. However it turns out that it returns domain\username in Desktop and user email address in Service.
@SQLBI
@SQLBI Жыл бұрын
You are probably making some other mistake - it works correctly also in the service in a card. Open a ticket with Microsoft support to further investigate what is not working on your tenant.
@nishanththulasiram5851
@nishanththulasiram5851 6 ай бұрын
Hi sir, how to retrieve user id in power bi service, as username function returns email id and not user id.
Differences between GROUPBY and SUMMARIZE
28:30
SQLBI
Рет қаралды 36 М.
wow so cute 🥰
00:20
dednahype
Рет қаралды 31 МЛН
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 21 МЛН
DEFINE MEASURE - DAX Guide
1:25
SQLBI
Рет қаралды 8 М.
Solving errors in CALCULATE filter arguments
30:55
SQLBI
Рет қаралды 28 М.
Power BI: Dynamic Security Using USERPRINCIPALNAME ()
8:02
Pragmatic Works
Рет қаралды 24 М.
Variables in DAX
16:46
SQLBI
Рет қаралды 34 М.
Budget Forecasting in Power BI using Linear Regression: Manager's Guide
12:25
The Introverted Manager Show
Рет қаралды 7 М.
Introducing RANKX in DAX
19:42
SQLBI
Рет қаралды 31 М.
wow so cute 🥰
00:20
dednahype
Рет қаралды 31 МЛН