The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Given the data below:
Column1 | Column2 | Value |
A_001 | Alex | 50 |
A_002 | Alex | 80 |
A_003 | Betty | 70 |
I am creating a column chart based on the data above. I put Column1 as my X-axis and Value as my Y-axis.
However, I do not want the X-axis value to show as A_001/A_002. I would like it to show the name such as Alex in Column2.
I cannot put Column2 as my X-axis because there are chances of identical values as shown in the table, which will merge and stack up the value by Power Bi.
Can anyone advise?
I have added an index column in Power Query and concatenated it with your Column2, to create a column named "Custom".
Required Output:
Note: You won't be able to eradicate "1-" ; "2-" and achieve the required outputs.
Steps:
You can follow the below images to achieve the required output.
Thank You.
If this solution answers your question, do mark it as Solved.
Hi, thank you for your answer. However, the index 1, 2, 3 in the text doesn't seem clean to me. But thanks anyway!
>> Create New Column :
If this post helps, please consider accept as solution to help other members find it more quickly.
Hi, I have thought of concatenating with other columns to make it an unique value. However, the text is just too long after the concatenation. Is there anyway to only show certain number of characters in the visual?
can you share sample output format.