Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a table named 'service'.
I want to create a new calucuated column that says if the field 'done' (date field) is blank do not insert any value but if the 'done' field is not blank insert the date value+one day.
Below what I already tried -
1. NewColumn= IF(Service[Done]=BLANK(),BLANK(),Service[Done]+1)
I get the error message - Column '' in Table '' contains blank values and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table.
2. NewColumn = IF(Service[Done]=BLANK()," ",Service[Done]+1)
Error message: Expressions that yield variant data-type cannot be used to define calculated columns.
Does anyone have an idea how to resolve it? I'm getting frustrated
Solved! Go to Solution.
Hi @Yaniv,
I changed the data type of Service[Done] from Text to Date/Time, delete and recreate the calculated column Service[DoneDate], everything worked.
I have sent you the modified pbix file through private message.
Best regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
146 | |
110 | |
107 | |
86 | |
63 |