Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I am new to the Power BI and I want to create a scatter chart with two date series. Each one should have a different color.
The first one has the columns: X1, Y1
The second one: X2, Y2
My table contains four columns X1, Y1, X2 and Y2.
I fail with inserting the second data series to the scatter chart. The only idea I have got is to make two transparent diagrams overeach other.
Thank you,
Solved! Go to Solution.
Hi @GIvanov ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2)Click "transform data" to enter the power query editor, then select [y1] and [y2] columns, click to transpose other columns, then select [Attribute] and [Value] columns, click to transpose other columns, and then click close and apply.
(3)We can create a calculated column.
Legend = SWITCH(TRUE(),
AND(CONTAINSSTRING('Table'[Attribute-x],1) ,CONTAINSSTRING('Table'[Attribute-y],1)),1,
AND(CONTAINSSTRING('Table'[Attribute-x],2) ,CONTAINSSTRING('Table'[Attribute-y],2)),2)
(4)Then we can create a table.
Table 2 = FILTER('Table','Table'[Legend]=1 || 'Table'[Legend]=2)
(5) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @GIvanov ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2)Click "transform data" to enter the power query editor, then select [y1] and [y2] columns, click to transpose other columns, then select [Attribute] and [Value] columns, click to transpose other columns, and then click close and apply.
(3)We can create a calculated column.
Legend = SWITCH(TRUE(),
AND(CONTAINSSTRING('Table'[Attribute-x],1) ,CONTAINSSTRING('Table'[Attribute-y],1)),1,
AND(CONTAINSSTRING('Table'[Attribute-x],2) ,CONTAINSSTRING('Table'[Attribute-y],2)),2)
(4)Then we can create a table.
Table 2 = FILTER('Table','Table'[Legend]=1 || 'Table'[Legend]=2)
(5) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
89 | |
88 | |
82 | |
64 | |
49 |
User | Count |
---|---|
125 | |
111 | |
88 | |
69 | |
66 |