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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

#Error displayed in Text Box in Power BI Report Builder

Hi Experts,

 

I have created a table in Power BI Report Builder which has few columns and values. Whenever, I run the report, I am getting #Error displayed instead of the actual value i.e. SUM(=Fields!Amount.Value). It displays correct integer value if I don't use SUM aggregation.

I have also tried this but still it shows #error:

=SUM(IIF(Fields!Amount.Value=0, 0, Fields!Amount.Value))

 

Could you please advise how it can be fixed?

 

Thanks so much in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have solved it myself.  The error was happening because the field was a string. I just converted the field to int and its resolved.

 

=SUM(IIF(INT(Fields!Amount.Value)=0, 0, INT(Fields!Amount.Value)))

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I have solved it myself.  The error was happening because the field was a string. I just converted the field to int and its resolved.

 

=SUM(IIF(INT(Fields!Amount.Value)=0, 0, INT(Fields!Amount.Value)))

Pragati11
Super User
Super User

Hi @Anonymous ,

 

Can you share the error details please?

 

In your DAX I see there is a problem:

=SUM(IIF(Fields!Amount.Value=0, 0, Fields!Amount.Value))

 

The higlighted area in RED. It should be IF

 

Just try adding more details to your query.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hi @Pragati11 , 

 

I am facing this in Power BI Report Builder. I think your response is more specific to Power BI Desktop.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors