Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
I have used below in my Power Query:
Table.AddColumn(#"Changed Type3", "Custom Consumer ID", each if each Text.Contains([DIM_OPS_CNDCT_PRODUCT_KEY], "Package SME") = true then 2 else [DIM_SEGMENT_ID])
Now, I am getting error, at
each if each Text.Contains([DIM_OPS_CNDCT_PRODUCT_KEY], "Package SME") = true
as
"Expression.Error: We cannot convert a value of type Function to type Logical.
Details:
Value=[Function]
Type=[Type]"
Can any one help me that, how can I write that IF then ELSE cuase.
Thanks,
Sandip
Solved! Go to Solution.
Hi,
According with error message the problem is here:
Try to delete thar "each"
Proud to be a Super User!
Hi,
According with error message the problem is here:
Try to delete thar "each"
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
91 | |
74 | |
64 | |
48 | |
36 |
User | Count |
---|---|
115 | |
86 | |
80 | |
58 | |
39 |