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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
apostol-raf
New Member

plot graphics Power BI

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 ?

1 ACCEPTED SOLUTION

Hi @apostol-raf ,

 

We need unpivot the topic columns first in power query editor:

5.jpg

 

then we can create a measure to show the value

Measure = DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALL('Table'[Attribute])))

 6.jpg

 


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,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

messageIDTopic1topic2topic3topic4Autor
ID10110client
ID21000client
ID31011salesMan

 

where 1 or 0 apply if the message contein the topic. 

 

I want get the next chart: 

1.png

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**: 

2.png

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,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @apostol-raf ,

 

We need unpivot the topic columns first in power query editor:

5.jpg

 

then we can create a measure to show the value

Measure = DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALL('Table'[Attribute])))

 6.jpg

 


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,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.