Forum Discussion

apostol-raf's avatar
apostol-raf
New Member
6 years ago
Solved

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 ?

  • v-lid-msft's avatar
    v-lid-msft
    6 years ago

    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,

     

4 Replies

    • apostol-raf's avatar
      apostol-raf
      New Member
      messageIDTopic1topic2topic3topic4Autor
      ID10110client
      ID21000client
      ID31011salesMan

       

      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

      • v-lid-msft's avatar
        v-lid-msft
        Community Support

        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,