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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ajitrikibe
Regular Visitor

Data is in row and need to create chart of it

Hello All,

 

My data is in rows,

For eg. I want to create chart for IJP process1 for x company,b company ,z company,r compnay and so on. 

How to create chart for such data ?

 

particularsAnswer inx companyb companyz compnayr compnaye compnays compnay
IJP Process 10/1000000
IJP Process - Please certify if the criteria of Panel was adhered while interviewing the candidatesY/NNoNoNoNoNoYes
No. of STOE TrainedNo.000001
No. of STOE Deployed in Respective DepartmentNo.000001
OE Buffer(%)%0%1%5%8%6%0%
ERM - Date of MeetingDate1/22/20182/15/20183/20/20184/27/20185/10/20186/21/2018
1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @ajitrikibe

To make the chart more visible, I would change the value 0 to whole numbers.

In query editor, 

1. create a blank query, then write the code in advanced editor

let
    Source = Table1,
    newsource=Table.SelectRows(Source,each[particulars]="IJP Process 1"),
    #"Unpivoted Only Selected Columns" = Table.Unpivot(newsource, {"x company", "b company", "z compnay", "r compnay", "e compnay", "s compnay"}, "Attribute", "Value"),
    #"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Only Selected Columns",{{"Value", type number}})
in
    #"Changed Type"

6.png

Then select "company" columns from x to s, apply "Transform"->"Upviot only selected columns"

5.png

Please note, before "colse &&apply", you need to change the "value" column to "number" data type instead of "text" by default.

 

Then in the report view,

7.png

 

 

Best Regards

Maggie

View solution in original post

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @ajitrikibe

To make the chart more visible, I would change the value 0 to whole numbers.

In query editor, 

1. create a blank query, then write the code in advanced editor

let
    Source = Table1,
    newsource=Table.SelectRows(Source,each[particulars]="IJP Process 1"),
    #"Unpivoted Only Selected Columns" = Table.Unpivot(newsource, {"x company", "b company", "z compnay", "r compnay", "e compnay", "s compnay"}, "Attribute", "Value"),
    #"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Only Selected Columns",{{"Value", type number}})
in
    #"Changed Type"

6.png

Then select "company" columns from x to s, apply "Transform"->"Upviot only selected columns"

5.png

Please note, before "colse &&apply", you need to change the "value" column to "number" data type instead of "text" by default.

 

Then in the report view,

7.png

 

 

Best Regards

Maggie

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.