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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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

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
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

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.

Anonymous
Not applicable

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

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.

Anonymous
Not applicable

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.