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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nsam101
Regular Visitor

Number format from SSAS cube lost

I have a number of measures defined in my multidimensional AS cube where the number of decimal places is explicity set, either directly against the incoming database measure or in a cube calculated measure (e.g. FORMAT_STRING = "#,#"). These work fine everywhere else, in reports and Excel, etc. However Power BI ignores them and displays the measures to many decimal places. 

 

I have tried the solution suggested here to no avail: https://community.powerbi.com/t5/Integrations-with-Files-and/Number-format-from-SSAS-cube-lost/m-p/1...

 

Any other suggestions? It's a real barrier to user adoption of Power BI if 15 digits are displayed where 2 would suffice, especially when viewed on a mobile device.

 

Funnily enough, the behaviour varies depending on whether the report is viewed in Power BI Desktop (4 decimal places) or Power BI Online (15 decimal places).

6 REPLIES 6
xppdev
Frequent Visitor

Same issue here, and I belive we used to be able to categorize data as well. I vaguely remember assigning City and other address info in our proof of concept. The formatting really needs to be in the Power BI tool as we are trying to get our users to utilize more of a self service reporting model. Ex, some users may not want to see any decimals. Or even just show the thousands.

We can not import cubes or tabular models either. Once I add a date dimension, I get an immediate memory error. We are working through MS to try and resolve, but no answers as of yet. These issues are making it difficult to implement the product.

I'm facing a possibly related problem where I apply some case transformations (uppercase, lowercase, etc.) to string columns in the SSAS model using the Query Editor, but those changes are ignored in Power BI.

mchapman
Advocate I
Advocate I

Same issue here.  Looks like you can make it work if you set the format_string when you create a calcualted member like this:

CREATE MEMBER CURRENTCUBE.[Measures].[Gross Margin Percent]

AS DIVIDE([Measures].[Gross Margin],[Measures].[Net Sales]),

FORMAT_STRING = "Percent",

NON_EMPTY_BEHAVIOR = { [Net Sales] },

VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'Measures' ;

 

But if you calculate that member outside of the create statement the formatting doesn't hold.  I haven't been able to get any formatting to pass through on any stored members no matter where I set the format.

 

This is frustrating as I spent the entire year trying to sell this tool to the business and now I have people buying in and this is a project derailer for most of them.  Seems like this should be a much bigger issue.  Are there just not that many people using the live connections yet?

 

I'm only interested in live connections against cubes as we have team members all over the world and security is already set up in every cube. 

ankitpatira
Community Champion
Community Champion

@nsam101 Are you connecting live or importing data. Becuase if you're importing then you can control data format and type via query editor and under Modelling tab. If connecting live I would suggest you change format under cube and see if it makes any difference. I have seen this before and I would also suggest you submit it as a bug here.

I'm connecting live. I have tried changing the formatting in the cube, and although it's reflected in Excel pivot tables it's ignored by Power BI. So it does seem like a bug to me.

Anonymous
Not applicable

We have same issue here (measures in % in a cube, but displayed as decimal in PowerBI). I was just starting my research, but it seems it's a real issue.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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