Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Heya
Is this best way to write this dax function
DepartmentFixAsset =
Switch(SELECTEDVALUE(Employee[Department]),
BLANK(),SELECTEDVALUE('Fixed Asset Depreciation'[Custodian]),
SELECTEDVALUE(Employee[Department])
)
Solved! Go to Solution.
@ace512
You can write that in one line DepartmentFixAsset = SELECTEDVALUE(Employee[Department] , SELECTEDVALUE('Fixed Asset Depreciation'[Custodian])
As selected value accepts a replacement value if it's blank
@ace512
You can write that in one line DepartmentFixAsset = SELECTEDVALUE(Employee[Department] , SELECTEDVALUE('Fixed Asset Depreciation'[Custodian])
As selected value accepts a replacement value if it's blank
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!