Forum Discussion

frano72's avatar
frano72
Icon for Helper IV rankHelper IV
5 years ago
Solved

Anonomise Dozer Operator performance dynamically to see their relative performance compared to other

Hi, I want to be able to show a Dozer Operator a metric that measures their performance relative to their peers, and be able to dynamically select each Operator (slicer) and show a chart that anonymises everyone elses data except their own.

 

I have one fact table which contains all the dozer cycles (a forward and reverse) and a shift(date) table for slicing by shift.

 

The visual has Operator added on x-axis and a measure to calculate the appropriate metric.

 

I've provided some dummy data in a pbix file for a single shift, so didn't bother with the date table relationship

https://www.dropbox.com/s/1jn972x4x2tpknr/Anonymise%20Example.pbix?dl=0

 

Thanks !

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi frano72 

    I think you want a dynamic X-axis, show select operate only and others show blank.

    We can't add measure in X-axis in column charts, I achieve your goal by build a matrix visual with measure.

    Firsly build a Slicer table by dax.

     

    Slicer = SUMMARIZE(FILTER(Sheet2,Sheet2[Operator]<>BLANK()),Sheet2[Operator])

     

    Then build a matrix visual by measure and Sheet2[Operator].

     

    Measure = 
    IF(ISFILTERED(Slicer[Operator])&&MAX(Sheet2[Operator])=SELECTEDVALUE(Slicer[Operator]),SELECTEDVALUE(Slicer[Operator]),"")

     

    We need to show axis in chart visual in white color, and column headers in matrix in white color as well.

    Then transform the matrix to correspond to values in chart visual. And set background of both visuals show transparent.

    Group two visuals and result is as below. (I select Tom in slicer and x -axis show Tom only)

    Your demand is a good idea, while it is not supported to implement in Power BI currently.
    You can vote up this idea for this function:using measures in axis for bar chart
    Or you can submit a new idea to improve the Power BI.
    It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

    You can download the pbix file from this link: File

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

     

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi frano72 

    I think you want a dynamic X-axis, show select operate only and others show blank.

    We can't add measure in X-axis in column charts, I achieve your goal by build a matrix visual with measure.

    Firsly build a Slicer table by dax.

     

    Slicer = SUMMARIZE(FILTER(Sheet2,Sheet2[Operator]<>BLANK()),Sheet2[Operator])

     

    Then build a matrix visual by measure and Sheet2[Operator].

     

    Measure = 
    IF(ISFILTERED(Slicer[Operator])&&MAX(Sheet2[Operator])=SELECTEDVALUE(Slicer[Operator]),SELECTEDVALUE(Slicer[Operator]),"")

     

    We need to show axis in chart visual in white color, and column headers in matrix in white color as well.

    Then transform the matrix to correspond to values in chart visual. And set background of both visuals show transparent.

    Group two visuals and result is as below. (I select Tom in slicer and x -axis show Tom only)

    Your demand is a good idea, while it is not supported to implement in Power BI currently.
    You can vote up this idea for this function:using measures in axis for bar chart
    Or you can submit a new idea to improve the Power BI.
    It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

    You can download the pbix file from this link: File

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.