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
MessageID topic1 topic2 topic... topicN Autor
id1 1 1 1 1 client
id2 0 0 0 0 client
id... 1 0 0 1 salesman
id N 1 1 0 1 salesman
I want to plot bar -chat, where X-axis is topic1, topic2, topic..., topicN. Values on Y-axis is sum of values on each columns cell, with two bar for each Autor(client and salesman). I plot this table into Excel from two click, but in Power BI can't.
How can I plot this graphics in Power BI ?
Solved! Go to Solution.
Hi @apostol-raf ,
We need unpivot the topic columns first in power query editor:
then we can create a measure to show the value
Measure = DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALL('Table'[Attribute])))
If it doesn't meet your requirement, Could you please show the exact expected result based on the Tables that you have shared?
By the way, PBIX file as attached.
Best regards,
@apostol-raf ,The information you have provided is not making the problem clear to me. Can you please explain with an example. Can you share sample data and sample output.
Seem like you need to unpivot data first
https://radacad.com/pivot-and-unpivot-with-power-bi
Appreciate your Kudos.
| messageID | Topic1 | topic2 | topic3 | topic4 | Autor |
| ID1 | 0 | 1 | 1 | 0 | client |
| ID2 | 1 | 0 | 0 | 0 | client |
| ID3 | 1 | 0 | 1 | 1 | salesMan |
where 1 or 0 apply if the message contein the topic.
I want get the next chart:
where on Y-axis i wont get percent of all summ, where on Y-axis i wont to get percent of all summ values in topics on each autor.
But in PB i get this **bleep**:
where my column group by autor, but i want group tematics and subgroup by autor
Hi @apostol-raf ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,
Hi @apostol-raf ,
We need unpivot the topic columns first in power query editor:
then we can create a measure to show the value
Measure = DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALL('Table'[Attribute])))
If it doesn't meet your requirement, Could you please show the exact expected result based on the Tables that you have shared?
By the way, PBIX file as attached.
Best regards,
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.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 31 | |
| 28 | |
| 24 |