Forum Discussion

abksharma's avatar
abksharma
Helper II
1 year ago
Solved

Data Type changes while importing semantic model to new Dashboard

measure e.g. [ccm_TotalDevice] Data Type changes while importing semantic model to new Dashboard, A text data type becomes another data type. I tried refreshing the dataset model, can not find any wa...
  • v-csrikanth's avatar
    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