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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.