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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
How to replace value in calculated table with condition or select any specific columns.
Hi @Anonymous -replace or modify values based on your requirements
SSL =
VAR Unique_SSL = DISTINCT(
UNION(
VALUES('Base file Current week'[SSL]),
VALUES(CIS[SSL]),
VALUES(YOY[SSL]),
VALUES('YTD Utilization'[_SSL])
)
)
VAR Updated_Table =
ADDCOLUMNS(
Unique_SSL,
"_SSL",
IF(
NOT(ISBLANK([SSL])),
"1" & MID([SSL], 2, LEN([SSL]) - 1), // Replace the first character with '1'
BLANK() // Or handle other conditions as needed
)
)
RETURN
Updated_Table
Hope it works
Proud to be a Super User! | |