cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Display selected items in line & clustered column chart

Hello, good day, is there a way to show the line value based on my selection? For example, if I select the trainee option, the line value will ony display my trainee target. At the moment if I use a slicer, the line value will show as below eventhough the clustered chart will change accordingly to my selection. Been stucked for 2 days. File will be attached below. Thanks.

Capture.PNG

https://drive.google.com/file/d/1vCz5QYHPJ2M-IPzQ3R6tKHOjlsfyjyeU/view?usp=sharing

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Hi, @yoong_00 

According to your description, you want to display one line and column chart according to the Silcer, you can try my measure:

Average = 
SWITCH(
    SELECTEDVALUE(Graph[Measure]),
    "Headcount",AVERAGEX(ALLSELECTED('Graph'),[HeadcountValue]),
    "Permanent Employee", AVERAGEX(ALLSELECTED('Graph'),[PermEmpValue]),
    "Practical Trainees", AVERAGEX(ALLSELECTED('Graph'),[TraineeValue]),
    BLANK()
)

Then place this measure into the line value, delete the other line values, you can get what you want, like this:

屏幕截图 2020-11-02 095737.png

 

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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
Highlighted
Community Support
Community Support

Hi, @yoong_00 

According to your description, you can try my method:

  1. Click the line & clustered column chart, then choose format, Y-Axis, like this:

v-robertq-msft_0-1604048487654.png

 

  1. Flip down, find “Show Secondary”, like this:

v-robertq-msft_1-1604048487657.png

 

And you can get what you want, like this:

屏幕截图 2020-10-30 170158.png

 

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

Highlighted

@v-robertq-msft sorry for the late reply and thanks for the help, unfortunately didnt solve my problem. Maybe I'm not too clear. My expected result is like this. 

yoong_00_0-1604280142444.png

Unfotunately, my visual is showing all 3 is there a way to show only a single value based on a selection. eg Headcount shows only headcount line value as the photo above.

Highlighted

Hi, @yoong_00 

According to your description, you want to display one line and column chart according to the Silcer, you can try my measure:

Average = 
SWITCH(
    SELECTEDVALUE(Graph[Measure]),
    "Headcount",AVERAGEX(ALLSELECTED('Graph'),[HeadcountValue]),
    "Permanent Employee", AVERAGEX(ALLSELECTED('Graph'),[PermEmpValue]),
    "Practical Trainees", AVERAGEX(ALLSELECTED('Graph'),[TraineeValue]),
    BLANK()
)

Then place this measure into the line value, delete the other line values, you can get what you want, like this:

屏幕截图 2020-11-02 095737.png

 

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

Highlighted

@v-robertq-msft thanks alot really new to power bi was not sure how to do it 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors