Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello I am attempting to create a conditional column that takes a column's cell value in column "Ind_Exp" and translates the value (1,2,3,4,5,6) to "<=10" , "11-15", .etc. (outputs seen below). I am having issues with the Output value which is a string value shown as "11-15". Upon clicking "OK" in the Add Conditional Column window seen below it will format the "11-15" to a date of "11/15/2021". I want to keep the value as "11-15" and not a date, what ways can I resolve this formatting issue?
Solved! Go to Solution.
Look at your code in the advanced editor. WHen you typed in 11-15, it did something like this:
if [Dept] = "DAIRY" then #date(2021,11,15) else null
Manually in the Advanced Editor (Home ribbon) change it to something like this:
if [Dept] = "DAIRY" then "11-15" else null
Then be sure the field is set to Text - Upper left icon that is ABC/123, make sure it says ABC.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingLook at your code in the advanced editor. WHen you typed in 11-15, it did something like this:
if [Dept] = "DAIRY" then #date(2021,11,15) else null
Manually in the Advanced Editor (Home ribbon) change it to something like this:
if [Dept] = "DAIRY" then "11-15" else null
Then be sure the field is set to Text - Upper left icon that is ABC/123, make sure it says ABC.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi,
this solution seems to break and revert to 'subtracting text' and converting to #date if you open the conditional column back up and saving. Unless i am not following steps noted in solution above correctly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
6 | |
6 | |
6 | |
5 |
User | Count |
---|---|
9 | |
9 | |
8 | |
6 | |
6 |