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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
TomWay
New Member

Why MDX query returns my measure with numbers as text

Hi,

I am using MDX query designer in PowerPivot to drag the data as well as to create calculated columns.

 

I want to combine two fields : one shows one side of accounting account, another oposit side of accounting account Measure name is "Amount" - PROBLEM IS THAT IT RETURNS THE VALUES AS TEXT AND POWER PIVOT DOES NOT ALLOW TO CONVERT IT IN DATA MODEL.

 

Below my query:

 

WITH MEMBER [Measures].[Amount] AS [Measures].[Obroty WN].Value - [Obroty MA].Value, SELECT NON EMPTY {[Measures].[Amount], [Measures].[Kwota] } ON COLUMNS, NON EMPTY { ([Data].[Data finansowa].[Data].ALLMEMBERS * [Wymiar 04].[Kod wymiaru 04].[Kod wymiaru 04].ALLMEMBERS * [Wymiar 04].[Nazwa wymiaru 04].[Nazwa wymiaru 04].ALLMEMBERS * [MPK].[Struktura raportowa MPK].[Poziom 01].ALLMEMBERS * [Wymiar 02].[Nazwa wymiaru 02].[Nazwa wymiaru 02].ALLMEMBERS * [Wymiar 02].[Kod wymiaru 02].[Kod wymiaru 02].ALLMEMBERS * [Wymiar 05].[Kod wymiaru 05].[Kod wymiaru 05].ALLMEMBERS * [Wymiar 05].[Nazwa wymiaru 05].[Nazwa wymiaru 05].ALLMEMBERS * [Wymiar 06].[Kod wymiaru 06].[Kod wymiaru 06].ALLMEMBERS * [Wymiar 06].[Nazwa wymiaru 06].[Nazwa wymiaru 06].ALLMEMBERS * [Wymiar 07].[Kod wymiaru 07].[Kod wymiaru 07].ALLMEMBERS * [Wymiar 07].[Nazwa wymiaru 07].[Nazwa wymiaru 07].ALLMEMBERS * [Wymiar 08].[Kod wymiaru 08].[Kod wymiaru 08].ALLMEMBERS * [Wymiar 08].[Nazwa wymiaru 08].[Nazwa wymiaru 08].ALLMEMBERS * [Konto].[Konta wg numerów].[Syntetyka].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [FK] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

 

Thanks in advance

Tommy

0 REPLIES 0

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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