Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have table in which I have unpivoted the columns against an ID variable in order to create one long table with a column called "Variable" and another column called "Value" associated witth each "ID". See an example bellow.
| ID | Variable | Value |
| A | Name | Steve Banks |
| A | Birth Date | 1987/04/03 |
| A | Occupation | Analyst |
| B | Name | Chris Allison |
| B | Birth Date | 1999/03/02 |
| B | Occupation | Manager |
| C | Name | Shelley Guade |
| C | Birth Date | 1995/03/05 |
| C | Occupation | Analyst |
I am then using a matrix table in Power BI to display the variables and values for each ID.
the problem I am having is that the default data type in my "Value" column is "text" since that is the data type Power BI is recognizing for the variable "Value". I want to be able to have a condition that can parse this variable and conditionally change the format of "text" to variables that should be formatted as strings and "date" to variables that should be formatted as dates.
Any tips on how to achieve this would be much appreciated.
Hi @stemorri ,
It is not supported for single column to have mixed data types in Power BI.
You may submit this as an idea.
Let me know if I misunderstood your meaning.
Best Regards,
Jay
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 33 | |
| 32 | |
| 31 |