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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
StephenF
Responsive Resident
Responsive Resident

Dynamic format string numbers on export dont produce readable numbers for excel

DO NOT LINK ME TO IRRELEVENT ARTICLES PLEASE.

My Format code used for my report is:

 

SWITCH(
    true(),
    SELECTEDMEASURE()>999999999,"€#,##0,,,.0B",
    SELECTEDMEASURE()>999999,"€#,##0,,.00M",
    SELECTEDMEASURE()>999,"€#,##0,.00K","€#,##0.0")


Now, a sample of exported data , notice the "M" which makes  a nonsense of the numbers(The M should not be there at all)

Yr 2021
€5188341.90M
€5216550.00M
€796085.00K
€2523204.00M
€2894047.00M
€3039211.00M

 

sample of data where this formatting isnt applied (Readible by excel) - any ideas to get the the above like the below?

Yr 2022
€5,434,226
€5,310,134
€2,962,617
€2,860,899
€2,853,057
€2,811,731
3 REPLIES 3
Manikantans2
Frequent Visitor

Hi Stephen, were you able to get a solution for this?

v-yanjiang-msft
Community Support
Community Support

Hi @StephenF ,

Is the following result after format? If so, what 's the original data. 

Yr 2021
€5188341.90M
€5216550.00M
€796085.00K
€2523204.00M
€2894047.00M
€3039211.00M

I create a sample with the below fact data.

Yr 2021
5188341.90
5216550.00
796085.00
2523204.00
2894047.00
3039211.00
Measure =
MAX ( 'Table'[Yr 2021] )

Measure can get the correct result with the format formula you provided.

vyanjiangmsft_0-1686298973165.png

Not sure what's the difference with your sample, I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Basically its the exported output file which includes non numerical elements for numerical columns when dynamic formatting for numbers is applied. eg the "M" part or "K" part is exported rsther then a pure number understandable by excel.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.