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! Request now

Reply
Anonymous
Not applicable

SAP BW DirectQuery: Mapping of key figure with the same name but different technical id

I am getting the following error when I tried to refresh my SAP BW Query in Power BI Desktop. It was working fine previously. I have made changes in the BEx Query Level and deleted a Key Figure and inserted another one with the same name. However, both technical ids are different. Is there any way to avoid this error or map the old key figure to new one.

 

The error is;

 

Feedback Type:
Frown (Error)

 

Error Message:
An internal error has occured.

 

Stack Trace Message:
An internal error has occured.

 

PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.88.802.0","ModuleName":"Microsoft.PowerBI.Tabular.dll","Component":"Microsoft.AnalysisServices.Tabular.Utils","Error":"Microsoft.AnalysisServices.Tabular.TomInternalException","MethodDef":"CompareCollections","ErrorOffset":"0"}

 

Model Default Mode:
DirectQuery

 

Model Version:
PowerBI_V3

 

Is Report V3 Models Enabled:
True

 

Enabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_JsonTableInference
PBI_NewWebTableInference
PBI_ImportTextByExample
PBI_ExcelTableInference
PBI_qnaLiveConnect
PBI_v3ModelsPreview
PBI_eimInformationProtectionForDesktop
PBI_azureMapVisual
PBI_dataPointLassoSelect
PBI_compositeModelsOverAS
PBI_narrativeTextBox
PBI_dynamicParameters
PBI_anomalyDetection
PBI_newFieldList
PBI_cartesianMultiplesAuthoring

Disabled Preview Features:
PBI_SpanishLinguisticsEnabled

 

Disabled DirectQuery Options:
TreatHanaAsRelationalSource

 

Cloud:
GlobalCloud

 

ModelChangeResult: {"changes":[{"itemDelete":{"entity":"Key Figures","property":"Key Figure 01","objectType":"Measure"}}, {"newMeasureCreated":{"entity":"Key Figures","name":"Key Figure 01","expression":"EXTERNALMEASURE(\"[Measures].[719M6KDWZEAXVENE6OWSYPM5U]\", INTEGER)"}}],"hasQueryImpact":true}

 

Note: The previous key figure/measure id is "719M6KDWZEAXVCLBKK8ZCTWGJ" and need to map it to "719M6KDWZEAXVENE6OWSYPM5U".

 

2 REPLIES 2
Anonymous
Not applicable

There @fahadanwar ,

As the official document said, The data source settings (for example, server name) can be changed by selecting Edit Queries > Data source settings. The settings for any Parameters can be changed by selecting Edit Queries > Manage Parameters.

Hope these help.

https://businessintelligist.com/2017/01/30/how-to-expose-key-values-from-sap-bw-in-power-query/

https://answers.sap.com/questions/12851890/is-microsoft-powerbi-replacement-for-bw-query-desi.html

https://dl.mitsubishielectric.com/dl/fa/document/catalog/ssc/l03158/l03158a.pdf

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

Anonymous
Not applicable

This is a common case as key figures with the same name but different technical id can do one of the following;

1. Either give option to map

2. Or Delete old ids and add new ones

 

None of this is happening and none of your suggested links have this information.

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.

Top Solution Authors
Top Kudoed Authors