Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have three data columns that I need to create a visual (bar graph or table). Is there a way to create the chart based on the three columns?
Example:
Status 1
Completed
Status 2
Pending
Status 3
Escalate
Solved! Go to Solution.
you can try to do the data transform in PQ
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wcs7PLchJLUlNUdJRCkjNS8nMSweyXIuTE3MSS1KVYnVooUQBjLGJEmEqRKNnXjJUljzzKNKCw3JswrEA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Completed = _t, Pending = _t, Escalate = _t]),
Custom1 = Table.FromList( List.Combine(Table.ToColumns( Source))),
#"Filtered Rows" = Table.SelectRows(Custom1, each ([Column1] <> " ")),
#"Duplicated Column" = Table.DuplicateColumn(#"Filtered Rows", "Column1", "Column1 - Copy"),
#"Grouped Rows" = Table.Group(#"Duplicated Column", {"Column1"}, {{"Count", each Table.RowCount(_), Int64.Type}})
in
#"Grouped Rows"
then it will be easy to draw the pie chart.
Proud to be a Super User!
Hi @Alaska1 ,
Ryan_mayu seems to have provided you with a solution, is it possible to mark his reply as a solution? Also, is there anything else you need help with regarding this thread?
Best Regards
Hello @Alaska1 ,
You might need to transform your data (Unpivot in power query or update directly in excel). Please see below data structure.
After this you can simply select the type of visual in the below case I have selected clustered column chart and put in field accordingly
Hope this help!
pls provide some sample data and expected output.
Proud to be a Super User!
| Completed | Pending | Escalate |
| Completed | Pending | Escalate |
| Completed | Pending | Escalate |
| Completed | Pending | Escalate |
| Completed | ||
| Completed | Escalate | |
| Completed | Pending | |
| Incomplete | ||
| Completed | Escalate | |
| Completed | ||
| Completed | Escalate | |
| Completed | ||
| Incomplete | ||
| Incomplete |
Thank you!
| Completed | Pending | Escalate |
| Completed | Pending | Escalate |
| Completed | Pending | Escalate |
| Completed | Pending | Escalate |
| Completed | ||
| Completed | Escalate | |
| Completed | Pending | |
| Incomplete | ||
| Completed | Escalate | |
| Completed | ||
| Completed | Escalate | |
| Completed | ||
| Incomplete | ||
| Incomplete |
Thank you!
you can try to do the data transform in PQ
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wcs7PLchJLUlNUdJRCkjNS8nMSweyXIuTE3MSS1KVYnVooUQBjLGJEmEqRKNnXjJUljzzKNKCw3JswrEA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Completed = _t, Pending = _t, Escalate = _t]),
Custom1 = Table.FromList( List.Combine(Table.ToColumns( Source))),
#"Filtered Rows" = Table.SelectRows(Custom1, each ([Column1] <> " ")),
#"Duplicated Column" = Table.DuplicateColumn(#"Filtered Rows", "Column1", "Column1 - Copy"),
#"Grouped Rows" = Table.Group(#"Duplicated Column", {"Column1"}, {{"Count", each Table.RowCount(_), Int64.Type}})
in
#"Grouped Rows"
then it will be easy to draw the pie chart.
Proud to be a Super User!
Thank you!
Hi @Alaska1 ,
Ryan_mayu seems to have provided you with a solution, is it possible to mark his reply as a solution? Also, is there anything else you need help with regarding this thread?
Best Regards
you are welcome
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 25 |