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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Converting error - unable to convert a data type to the data type requested for table 'column'.

Hi,

I have figured out why the error occurs, but not how to solve the problem. When I have a measure that returns a dash "-" when there is no data in a given month and try to combine that in a table with another measure or column that just shows nothing or shows 0 when there is no data in a given month, I get the message "Error fetching data for this visual - unable to convert a value to the data type requested for table 'column'. I have tried solutions like adding + 0 to my DAX for the measure that shows "-" when empty data, but still not working. I cannot show the DAX formula for the measures returning a dash, as they are from a DirectQuery.

How can I solve this problem?


1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Anonymous ,  Create a new measure that checks if the value is a dash and returns a numeric value or null instead:

DAX
NewMeasure =
IF(
ISNUMBER(VALUE([YourMeasure])),
VALUE([YourMeasure]),
BLANK()
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you

bhanu_gautam
Super User
Super User

@Anonymous ,  Create a new measure that checks if the value is a dash and returns a numeric value or null instead:

DAX
NewMeasure =
IF(
ISNUMBER(VALUE([YourMeasure])),
VALUE([YourMeasure]),
BLANK()
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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