March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
I'm trying to chart an Electrocardiogram from a value that contains 2500 values separated by a space. My dataset looks like this:
I'm trying to create a chart with the numbers in the cell and a fixed X-axis value (let's say 2,000). My chart should look like this:
I have tried using split.text and Generate series in DAX, but since this is medical data, I want to make sure that if for some reason one data point doesn't have 2,500 points, that I don't mess up the whole thing. What could be the best way to create this graph?
Thanks!
Solved! Go to Solution.
Hi @Edisonsepulveda ,
According to your description, here's my solution.
Sample:
1. Replace value in Power Query. For the Value column, replace space to "|".
2.Create a calculated column.
PathNo =
PATHLENGTH ( [Value] )
3.Create a new table.
Table 2 =
GENERATESERIES ( 1, MAX ( 'Table'[PathNo] ), 1 )
4.Create a measure.
Measure =
CONVERT (
PATHITEM ( SELECTEDVALUE ( 'Table'[Value] ), MAX ( 'Table 2'[Row] ) ),
INTEGER
)
Put Row column in X-axis and measure in Y-axis, get the correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Edisonsepulveda ,
According to your description, here's my solution.
Sample:
1. Replace value in Power Query. For the Value column, replace space to "|".
2.Create a calculated column.
PathNo =
PATHLENGTH ( [Value] )
3.Create a new table.
Table 2 =
GENERATESERIES ( 1, MAX ( 'Table'[PathNo] ), 1 )
4.Create a measure.
Measure =
CONVERT (
PATHITEM ( SELECTEDVALUE ( 'Table'[Value] ), MAX ( 'Table 2'[Row] ) ),
INTEGER
)
Put Row column in X-axis and measure in Y-axis, get the correct result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |