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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
M_nwadibia
Resolver III
Resolver III

SSRS Report not maintaining same format when exported to Excel

Hello ,

I have a Oracle SQL query

Select To_NUMBER( AG.SBA_REP, '99,999.99')

FROM TABLE A.

I used the SQL in SSRS and formatted the cell with SSRS expression FORMAT(CDec(Fields!Total_RLHAP_Award.Value), " #,0.00").

The Problem is when I export the report to excel the column records returns to text/General instead of integer. I have also tried removing the expression but the result is the same.

Any idea of how to solve this?.

M_nwadibia_0-1685981905125.png

 

2 REPLIES 2
d_gosbell
Super User
Super User

This is expected since the FORMAT() function returns a string. If you want to maintain the data type you should use the Format property on the textbox in your table instead of using the FORMAT function in an expression on the Value.

I have tried this and it didnt work. see the screen shot. When I exported it, the excel defaulted to general intead of staying as number.

M_nwadibia_0-1686055047034.png

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors