Forum Discussion
Scatter Diagram Date on X - Axis Randomized
- 6 years ago
Hi Slavi ,
I have found the problem,if you use Risk 1,2...as Y-Axis,it will sort as the following order: Risk 1,Risk 11,Risk 12,Risk 13...etc, as it was a text format,that is why it will show as below:
So the best choice for you is to change the "name" column into a whole number type using a dax expression as below:
Column = SUBSTITUTE('Table (2)'[Name],"Risk ","")Finally,you will see:
For the related .pbix file,pls click here.
Best Regards,
Kelly
Hello v-kelly-msft and thank you for your response,
Unfortunately, for some reason this does not work for me. I even made a similar graph to yours but the result as you can see from the picture bellow are not what you'd expect. It starts of from 2018, then it goes to 2019 and then to 2018 again.
Hi Slavi ,
Show me part of your sample and remove the confidential ones,I will test for you.
Best Regards,
Kelly
- Slavi6 years agoFrequent Visitor
- v-kelly-msft6 years ago
Community Support
Hi Slavi ,
I have found the problem,if you use Risk 1,2...as Y-Axis,it will sort as the following order: Risk 1,Risk 11,Risk 12,Risk 13...etc, as it was a text format,that is why it will show as below:
So the best choice for you is to change the "name" column into a whole number type using a dax expression as below:
Column = SUBSTITUTE('Table (2)'[Name],"Risk ","")Finally,you will see:
For the related .pbix file,pls click here.
Best Regards,
Kelly- Slavi6 years agoFrequent Visitor
Thank you v-kelly-msft! It did work. For my primary data i didn't have numerated Risks as names, so i inserted a index column for the Names and then created another Excel Sheet where each name was given a unique number and linked them. This worked and now everything is in order. 🙂