The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I do have null values for EndDate, having a calculated colum like this, why Power BI complains with:
Cannot convert value '' of type Text to type Number.
First part of the IF statmenet Not(ISBLANK) , should not get rid of null values? So in the second part of the IF, should not fail as it should be there only if Enddate is not null?
Column = IF(
Not(ISBLANK('aux_resourceworkingdays'[EndDate])) &&
VALUE(
YEAR(NOW())
& FORMAT(MONTH(NOW()), "00")) >
VALUE(
YEAR('aux_resourceworkingdays'[EndDate])
& FORMAT(MONTH('aux_resourceworkingdays'[EndDate]), "00")
),"False","true"
)
Solved! Go to Solution.
Hi @JSR , I thin kthe below is the solution,
1. you need to go the power query editor and select the table where you have EndDate column.
2. select the EndDate column and right click on the column and click on the option replace values and replace null to blanks.
3. this will solve your issue.
Regards,
Nikhil Chenna
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Hi @JSR , I thin kthe below is the solution,
1. you need to go the power query editor and select the table where you have EndDate column.
2. select the EndDate column and right click on the column and click on the option replace values and replace null to blanks.
3. this will solve your issue.
Regards,
Nikhil Chenna
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Hi @JSR , I thin kthe below is the solution,
1. you need to go the power query editor and select the table where you have EndDate column.
2. select the EndDate column and right click on the column and click on the option replace values and replace null to blanks.
3. this will solve your issue.
Regards,
Nikhil Chenna
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
User | Count |
---|---|
77 | |
76 | |
36 | |
31 | |
29 |
User | Count |
---|---|
93 | |
79 | |
57 | |
48 | |
48 |