Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everyone,
I have a simple task but I cannot figure out how to do this.
I have two columns, one a Retailer column that has dozens of retailers, and a second column that has sales units
I essentially want to clear all values that show under the Sales Units column, but only for the retailer Walmart (all other retailers are unchanged)
I have already filtered the rows to select just Walmart, but I cannot figure out on how to clear the values.
I have the following limitations:
-I do not want to create a new column
-I cannot use Replace Values as there are thousands of unique values.
I looked around and it was advised to use the * symbol in the Replace Values prompt, but it seems it only allows numeric values.
Can anyone advise?
Solved! Go to Solution.
replace_walmart = Table.ReplaceValue(
your_table,
null,
each [Retailer] = "Walmart",
(v, o, n) => if n then null else v,
{"Sales Units"}
)
Hi,
You can create a measure and use the Dax formula below. You need to change the formula with the name of your relevant table and column.
replace_walmart = Table.ReplaceValue(
your_table,
null,
each [Retailer] = "Walmart",
(v, o, n) => if n then null else v,
{"Sales Units"}
)
Just to confirm - there is no easy UI element for me to do this, and I have to use the editor /M code to accomplish this?
no UI, use Advanced Editor
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
13 | |
12 | |
12 | |
12 |