Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
KPI | Value |
Turnover rate | 3% |
NC rate | 1% |
Transportation cost | 1.73 |
operation cost | 2.2 |
Hi all,
I have a report to finish with using power bi, the data source is silimarl like above. The column of value contain two format, percentage and decimal, and i want to keep both the formats for creating report.
Can anyone help me find how to keep the two formats? because now the power bi covert them into deical.
Thanks a lot
Solved! Go to Solution.
Hi, @SYM1986
You can create a Measure with CONTAINSSTRING and FORMAT function. However, the data type of values in this Measure is Text. As @CNENFRNL said, there is only one data type for one column.
TwoFormatsValue = IF(CONTAINSSTRING(SELECTEDVALUE('Table'[KPI]),"rate"),FORMAT(SELECTEDVALUE('Table'[Value]),"#%"),SELECTEDVALUE('Table'[Value]))
The result looks like this:
Best Regards,
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @SYM1986
You can create a Measure with CONTAINSSTRING and FORMAT function. However, the data type of values in this Measure is Text. As @CNENFRNL said, there is only one data type for one column.
TwoFormatsValue = IF(CONTAINSSTRING(SELECTEDVALUE('Table'[KPI]),"rate"),FORMAT(SELECTEDVALUE('Table'[Value]),"#%"),SELECTEDVALUE('Table'[Value]))
The result looks like this:
Best Regards,
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello!! I got the same situation but i want to do a line chart of these 2 values ( Numebrs and %)
The % are not visable but the number we can see them. Please help!
@SYM1986 , up till the latest version of PBI, only one data format can be defined for one column.
As to your issue, there's a workaround like this,
1. use different measure in a matrix viz, i.e. Turnover rate, NC rate, Transportation cost etc,
2. format the matrix: Format roller - Values - show on rows
voilà, the matrix changes its layout as expected.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi,
I am afraid it is not possible to do in Power BI(Pivot & Query). One column should only have one type. In case we have different data types like numbers and text, it is recommended that we set column type as Text
However, I was able to find a workaround for this here.
See if it works for you.
Please provide a Kudos to this answer if you found it interesting.
If this post helps, then please consider accepting it as the solution to help the other members find it more quickly
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |