Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
https://drive.google.com/file/d/1vCz5QYHPJ2M-IPzQ3R6tKHOjlsfyjyeU/view?usp=sharing
Solved! Go to 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:
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.
Hi, @Anonymous
According to your description, you can try my method:
And you can get what you want, like this:
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.
@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.
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:
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.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
118 | |
101 | |
71 | |
61 |