Forum Discussion
Normalize data ranges for Line Chart
- 1 year ago
Hi Phil88 ,
Thanks for sharing the sample file. This helped me to understand my mistake. please modify the measure as below
Linie_A = var min_val = calculate(min(Tabelle[A]),allselected(Tabelle[Datum])) var max_val = calculate(max(Tabelle[A]),allselected(Tabelle[Datum])) var current_val = max(Tabelle[A]) var factor = 100/(max_val - min_val) return (current_val-min_val)*factorPlease refer the last graph .
If this solves, Plz accept as solution
hi Phil88 ,
You can scale them from 0 to 100 and plot in a single chart.
You need to create separate measures for each lines as per below syntax
measure =
var min_val = calculate(min(table , value),allselected(table, X-axix column))
var max_val = calculate(max(table , value),allselected(table, X-axix column))
var current_val = max(table,value)
var range_val = max_val - min_val
return
divide(current_val,range_val)
this should work. plz share sample data for exact representation.
Now to see the actual value, in the data label section, you can refer the respective columns.
Thank you but unfortunately that measure didn't come out as expected, see sample file:
https://drive.google.com/file/d/1V0veiEvRafamszY5CYunGokksV-FcTS7/view?usp=sharing
- Rupak_bi1 year agoSuper User
Hi Phil88 ,
Thanks for sharing the sample file. This helped me to understand my mistake. please modify the measure as below
Linie_A = var min_val = calculate(min(Tabelle[A]),allselected(Tabelle[Datum])) var max_val = calculate(max(Tabelle[A]),allselected(Tabelle[Datum])) var current_val = max(Tabelle[A]) var factor = 100/(max_val - min_val) return (current_val-min_val)*factorPlease refer the last graph .
If this solves, Plz accept as solution
- Phil881 year agoNew Member
Thanks, works perfect