Forum Discussion

leonmholt's avatar
leonmholt
New Member
7 years ago
Solved

Reading different data types in the same table from Excel

Hi there, I am a new PBI user and have, so far, been able to find answers to any query I had but have not yet cracked this one. I have an Excel table which outputs different types of data on each ro...
  • v-chuncz-msft's avatar
    7 years ago

    leonmholt 

     

    Excel handles a different data type for each cell, whereas DAX handles a single data type for each column. You may try using FORMAT.

    Column =
    FORMAT ( Table1[Data], IF ( Table1[Data] > 1, "General Number", "Percent" ) )