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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.