Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
27 |
User | Count |
---|---|
92 | |
50 | |
44 | |
40 | |
35 |