Forum Discussion
Data Type changes while importing semantic model to new Dashboard
- 1 year ago
Hi @abksharma
Thank you for engaging with the Microsoft Fabric Community.
In addtion reply to rajendraongole1
The below solution would be to explicitly convert the measure to a text data type using the FORMAT() function in DAX before importing it into the new Power BI report or dashboard.Modify your measure as follows:
ccm_TotalDevice_Text = FORMAT([ccm_TotalDevice], "0")
The measure is always treated as text, regardless of how it's imported or refreshed in the Power BI Service.
By explicitly formatting it as text, you avoid any issues with the data type being automatically changed to General/Number/Int when imported into another report.If the above information helps you, please give us a Kudos and marked the reply as a solution.
Thanks,
Cheri Srikanth
Hi abksharma - you can check Measure Formatting in the Original Model:
Open the original dataset in Power BI Desktop.
Ensure that the measure [ccm_TotalDeviceCount] is explicitly formatted as Text. To do this:
Go to the Model View, select the measure, and set its format to Text under the "Properties" pane.
Re-Apply Text Formatting in the New Report:
After importing the model into the new report, select the measure [ccm_TotalDeviceCount] in the Fields pane.
Go to the Modeling tab and change the format to Text.
still If the issue exist, try creating a new measure in the imported model with the same logic and explicitly format it as Text.
Hope this helps.