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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.