Solved

Support of "User context" in "Allow Input based on formula"

Started by MarkusJ · 1 month ago · 1 reply · 98 views
MarkusJ Participant
1 month ago

I'm familiar with the functions I can use in an “Allow Input” formula. So far, I haven't found a way to include the user context (the currently logged-in user) in the formula as well.

This works:
Country == “Germany”

This doesn't work:
AND(Country == “Germany”; User == “name@domain.com”)
--> because there is no "User"-variable available for the user context

Do you know a solution?

1 Reply
Senior Product Specialist · Lumel Technologies · 1 month ago

Hi Markus,

There isn’t a native feature inside the product to evaluate user context directly within the “allow input based on formula” setting right now.

The approach is to create a DAX measure using USERPRINCIPALNAME(), then add it to your visual. Once it’s on the visual, it’s available as a field in the sheet, so you can reference it in your formula alongside the country condition and the AND() will resolve.

Viewing 1 replies (of 1 total)

Microsoft, Azure, Copilot, Excel, Fabric IQ, Microsoft Entra, Microsoft Fabric, Microsoft Teams, OneLake, Outlook, Power Automate, Power BI and SharePoint are trademarks of the Microsoft group of companies. IBCS is a registered trademark of IBCS Association. All other trademarks are the property of their respective owners.

This community is operated independently by Lumel. Nothing on this site constitutes a representation or warranty by Microsoft.