Forum Discussion

NVKSB's avatar
NVKSB
New Member
3 years ago
Solved

single measure for multiple data in a single column

i have a mixed data points named "Vendor values" against which it contains 200+ vendor values in the same column, but in power bi if i want to plot individual line graph for all those vendors, then ...
  • wdx223_Daniel's avatar
    wdx223_Daniel
    3 years ago

    1, unpivot your table to one dimension, like this

    in Power Query, use this code

    NewStep=Table.UnpivotOtherColumns(PreviousStepName,{"period"},"vendors","value")

    2, creat a measure

    TTL = SUM('SampleData'[value])
    3, put the measure on the y-axis, and period on the x-axis, vendors on the slicer
    then can get this