Forum Discussion

sivaadityat's avatar
sivaadityat
Frequent Visitor
2 years ago
Solved

Visualize bins with unique measure values

Hello All,

 

I got a requirement in Headcount utilization with below scenario. I am looking a help to visualize bar chart with both measures in X and Y axis.

 

Scenario: I have calculated headcount and utilization percentage based on hours spent by each employee and converted utilization into bins. Now, I would like calculate headcount(unique emp ID's) based on bins calculated in measures(Bins - Utilization%).

 

As measures are not supported in Bar graph X axis, I am facing issue. Please find the example excel sheet below for reference.

 

EMP IDClient Facing HeadcountClient Facing HoursUtilization %Bins - Utilization%
A100140100%100 - 200%
A101150125%100 - 200%
A102160150%100 - 200%
A103170175%100 - 200%
A104180200%100 - 200%
A105190225%200 - 250%
A1061100250%200 - 250%
A1071110275%250 - 300%
A1081120300%250 - 300%
A1091130325%> 300%
A1101140350%> 300%

 

 

Note: please note that headers mentioned in red color above are Measures.

 

 

Any inpus / help is highly appriciated.

 

Thanks,Siva

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi sivaadityat ,

    Please try to create a calculate column with VAR keyword, use the VAR keyword to define the based calculate logic.

     

    Best regards,
    Community Support Team_Binbin Yu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi sivaadityat ,

    Please try to create a calculate column for bins, then add it to the X axis.

    In Power BI, X axis do not support measure.

     

    Best regards,
    Community Support Team_Binbin Yu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • sivaadityat's avatar
      sivaadityat
      Frequent Visitor

      Hi Anonymous 

       

      Thanks for the reply. I tried calculating calculated column for binning for this issue. But, as I am calculating this bins based on a measure value, it is giving a aggrigated value for all rows.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi sivaadityat ,

        Please try to create a calculate column with VAR keyword, use the VAR keyword to define the based calculate logic.

         

        Best regards,
        Community Support Team_Binbin Yu
        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.