SETVALUE

The SETVALUE formula can be used to assign a value to a data input field. It can be used to set up approval workflows in Power BI.

Syntax

SETVALUE(measure, value, row, column)

Arguments

measure - The value will be assigned to the field specified in this parameter. Required.

value - The value to be assigned. Required.

row - Use the ROW identifier to reference the current row or pass the row category. Optional.

columns - Use the COLUMN identifier to reference the current column or pass the column category. Optional.

Example

SETVALUE([Status], 'Approved')
//Assigns 'Approved' to the Status field

SETVALUE([Status], 'Approved', ROW.LEAVES, COLUMN.LEAVES)
//Assigns 'Approved' to the leaf rows and leaf columns

Data input dropdowns have an On Change Formula section where you can specify the actions to be triggered when a user selects an option. In this example, the ManagerApproval dropdown is set to 'Submitted' when the tax rate is changed:

The ManagerApproval automatically changes to 'Submitted' when the TaxRate field is changed.

Similarly, we can set up approval workflows by changing the DirectorApproval to 'Pending' when the manager approves. If the change is rejected by the manager, the status is automatically set to 'Rejected' in the DirectorApproval dropdown.

Fabric Plan
Enterprise planning, integrated with PowerTable and Intelligence, native to Microsoft Fabric. Co-engineered with Lumel.
CERTIFIED BY
Fabric Planning is certified by IBCS
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.