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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
pawlowski6132
Helper V
Helper V

Syntax to user USERPRINCIPAL name function in M

Has anyone used this function to filter a table in Power Query? I thought it would be as simple as this:

pawlowski6132_0-1608142478819.png

But, I'm getting an expression error I can't resolve.

pawlowski6132_1-1608142548262.png

 

As usual, thanx in advance for your help.

6 REPLIES 6
v-deddai1-msft
Community Support
Community Support

Hi @pawlowski6132 ,

 

What I mean is that it doesn't support for oracle data source.

 

Best Regards,

Dedmon Dai

 

pawlowski6132
Helper V
Helper V

Dedmon Dai, I'm don't think that's accurate. I'm sure the Dynamic M Query Paramater is also available now.

v-deddai1-msft
Community Support
Community Support

Hi @pawlowski6132 ,

 

You can only use query parameter for it now. And you can change the parameter in mange parameter in Power BI desktop:

 

Capture1.PNG

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

pawlowski6132
Helper V
Helper V

I think what I really want is to use the Dynamic M query parameter feature currently in preview but, not available for Oracle (or other popular data sources).

blopez11
Super User
Super User

USERPRINCIPALNAME is a DAX function

You cannot use it in the query editor

Crap. Of course. Duh.

 

I don't suppose there's any way to create a Power Query LIST from a filtered DAX table either. 

 

Frustrating.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.