Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

"The visual object cannot be displayed" formula to complex?

Hi everyone I am trying to add a calculated field, but I have an error called "The visual object cannot be displayed", the problem is that I can more column with simpler calculations. 

 

The formula used is 

 

DayAssignmentToday = DATEDIFF( 'public account'[assigned_manager_date],TODAY(),DAY) 

 

And I have the following message (I made the translation to English]

 

Image.png

 

I already checked the field has the data type date. 

 

Best Regards

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

It seems that similar issues have been raised by other users  here.

https://community.powerbi.com/t5/Issues/Redshift-with-DATEDIFF-Function-Throws-Expression-Error/idi-p/1086773

https://community.powerbi.com/t5/Issues/OLE-DB-or-ODBC-Error-Expression-Error-We-couldn-t-fold-the/idi-p/630511

 

You can keep an eye on the status of them.

BTY,It is recommended to create a support ticket to investigate this issue.
https://powerbi.microsoft.com/en-us/support/

 

Support Ticket.gif

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

Hi @amitchandak I was trying to find another solution but still, I am having the same issue. Basically I generated three new columns called

 

 

assigned_manager_date_YEAR = YEAR('public account'[assigned_manager_date])
assigned_manager_date_MONTH = MONTH('public account'[assigned_manager_date])
assigned_manager_date_DAY = DAY('public account'[assigned_manager_date])

 

01.png

Then I made a date column 

 

assigned_manager_date_DATE = DATE('public account'[assigned_manager_date_YEAR],'public account'[assigned_manager_date_MONTH],'public account'[assigned_manager_date_DAY])

 

02.png

but that column is already corrupted 

 

02.1.png

 

Hence the final column is as well corrupted 

 

DayAssignmentToday = DATEDIFF( 'public account'[assigned_manager_date_DATE],TODAY(),DAY)

 

03.png

I have to hide some information 

 

05.png

 

Thank you

 

 

amitchandak
Super User
Super User

@Anonymous , seem strange looking at the formula. Can you share sample data ? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi amitchandak, thank you for your email.  The relevant information just consist of a column with dates 

 

assigned_manager_date
1/1/2020 12:00:00 AM
1/1/2020 12:00:00 AM
12/31/2019 12:00:00 AM
1/1/2020 12:00:00 AM
1/1/2020 12:00:00 AM
1/1/2020 12:00:00 AM
1/1/2020 12:00:00 AM
7/31/2020 12:00:00 AM
1/16/2020 12:00:00 AM

 

I am attaching an image now with PowerBi in english

 

Image.png

 

Thank you

 

Mauricio

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors