Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
NVKSB
New Member

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 i should write multiple measures which contains 200+ measures! please guide me how to solve this problem

1 ACCEPTED SOLUTION

1, unpivot your table to one dimension, like this

wdx223_Daniel_0-1676256468356.png

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
wdx223_Daniel_1-1676256748211.png

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @NVKSB ,

 

It is not clear exactly what the model is like. Is it possible to create a slicer using [Vendor values] and filter different Vendors through the slicer? Like this:

vcgaomsft_0-1675998072437.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Thanks for your kind reply! slicer is working but if i select multiple vendors, it will not show the line graph as comparison. also, we tried lengend option but it is not working. 

Actually, i have the data in this form in the same column vendor naming from A to Z against that values entered - refer the table. 

in the power Bi, i need to plot the graph with respect to all the vendors in the same line graph. for this i need to write mulitple measures in which there is a limit to include those measures in the Y-axiz of power bi line graph. now instead of writing mulitple measures how to split the lines for multiple vendors into column to visualize in power bi line graph. for example i wrote A to Z vendors, but i have 200+ vendors in columns against that values are entered.

 

vendorValues
V0.996963
L0.054115
Y0.255604
U0.595632
A0.34784
Q0.920772
O0.241721
K0.410807
J0.539064
D0.584132
Z0.833179
E0.717449
X0.196723
0.234181
W0.384006
N0.309288
F0.059814
C0.084645
S0.72294
H0.113293
M0.166204
B0.087546
T0.845576
P0.877129
R0.956145
I

0.913694

 

actually, power bi has to split the data like this from the above column to plot the graph for comparison. but i am finding difficult to write. 

 

period VLYUAQO
01/01/20220.8342440.0878470.777750.4335140.2419070.8322060.790484
01/02/20220.3105730.0618710.4804520.7147470.2785540.313970.600749
01/03/20220.2404990.7847630.3017310.9211870.1679560.1450820.085129
01/04/20220.4866250.3528650.1886940.6171030.9760010.7112310.855793
01/05/20220.6096920.3058630.6663510.4576250.8807670.3428010.399002
01/06/20220.8494920.4383180.0625490.8393570.9025240.8165740.097438
01/07/20220.4050520.0349350.4438120.3653860.2959510.0061740.721441
01/08/20220.1602080.5343350.3695660.0370190.9325840.3064660.554775
01/09/20220.5518730.1560810.9794210.240380.2941370.6868730.569841
01/10/20220.1610030.4312470.6655050.2023530.9542190.252210.985219
01/11/20220.1912550.2120660.3807320.6004850.083840.3520860.199621
01/12/20220.2362240.3066440.4458890.929180.4003170.9642240.561808
01/01/20230.4163670.2359310.3810620.6032950.1541340.3201660.773025
01/02/20230.3048440.7263670.4755990.3613870.9260580.3091670.832495
01/03/20230.3409880.0255160.1135150.5429120.7212750.2070580.559285
01/04/20230.6835270.1916960.8059650.6187890.8948970.5903460.891981
01/05/20230.8683250.3109130.4051460.7021530.7529570.4098980.134553
01/06/20230.593910.084520.5601820.7603570.3807910.4437150.57491
01/07/20230.0903580.2313910.2486790.4984780.1440970.9636540.819901

 

NVKSB_0-1676091668700.png

 

 

i tried this code, Vendor A = IF [Vendor values] = "Vendor A", [Value], BLANK()

Vendor B = IF [Vendor values] = "Vendor B", [Value], BLANK() 

but the problem is for 200+ vendors i need to write the mesures and link in the Y axis of line graph. 

 

problem statement: in a column, i have mulitple vendor and in the other column, I have values entered against that, how to map individual vendors with respect to individual line graph.

 

Please help me with a solution.

 

Thank you, 

NVKSB

 

1, unpivot your table to one dimension, like this

wdx223_Daniel_0-1676256468356.png

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
wdx223_Daniel_1-1676256748211.png

 

Anonymous
Not applicable

Hi @NVKSB ,

 

Try pivoting the [vendor] column in the PowerQuery editor.

Suppose we have:

vcgaomsft_0-1676252566460.png

Select the [vendor] and pivot column

vcgaomsft_1-1676252635903.png

vcgaomsft_2-1676252671641.png

vcgaomsft_3-1676252696166.png

Pivot columns

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors