Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
stemorri
Frequent Visitor

Conditional Formatted Value

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.

IDVariableValue
ANameSteve Banks
ABirth Date1987/04/03
AOccupationAnalyst
BNameChris Allison
BBirth Date1999/03/02
BOccupationManager
CNameShelley Guade
CBirth Date1995/03/05
COccupationAnalyst

 

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.

1 REPLY 1
Anonymous
Not applicable

Hi @stemorri ,

 

It is not supported for single column to have mixed data types in Power BI.

You may submit this as an idea.

https://ideas.powerbi.com/ 

Let me know if I misunderstood your meaning.

 

Best Regards,

Jay

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.