Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
Is it possible that graph to show values of selected rows which can be added to slicer.
i want to view only one test at a time.
Raw Data:
sample | TEST 1 | TEST 2 | TEST 3 |
A | 2 | 23 | 12 |
B | 5 | 45 | 56 |
C | 3 | 3 | 9 |
D | 12 | 56 | 1 |
E | 5 | 86 | 54 |
how to add slicer in a graph such that it shows only selected row data in a graph??
Thanks
Solved! Go to Solution.
@Rohit_23 Hi, You need to create a table with the names of your measures, where Test1, Test2, Test3 will be indicated. then write measure Through SWITH
measure =
VAR test = SELECTEDVALUE('table_test'(Colum_Test)
SWITH(
TRUE(),
test = "Test1", [Test1],
test = "Test2", [Test2],
test = "Test3", [Test3]
)
I highly recommend you look into the field parameter structure in Power BI. This is something that is in preview at the moment and has to be turned on, but it will solve your issue perfectly. With field parameters, you can select the three test columns and dynamically switch between each one without having to write a manual switch table in DAX. This can be found in the modeling section within power bi desktop.
Sorry didnt get you solution, im have just started using BI for last few month. can you elaborate what exactly i have do.
I highly recommend you look into the field parameter structure in Power BI. This is something that is in preview at the moment and has to be turned on, but it will solve your issue perfectly. With field parameters, you can select the three test columns and dynamically switch between each one without having to write a manual switch table in DAX. This can be found in the modeling section within power bi desktop.
@Rohit_23 Hi, You need to create a table with the names of your measures, where Test1, Test2, Test3 will be indicated. then write measure Through SWITH
measure =
VAR test = SELECTEDVALUE('table_test'(Colum_Test)
SWITH(
TRUE(),
test = "Test1", [Test1],
test = "Test2", [Test2],
test = "Test3", [Test3]
)
Hi @Rohit_23
I believe that you are using a matrix visual, you can display the column that contains values TEST in a slicer visual with an option of simple selection.
Did it work ? 👌 Mark it as a solution to help spreading knowledge 👉 A kudos would be appreciated
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
69 | |
55 | |
36 | |
31 |
User | Count |
---|---|
87 | |
62 | |
61 | |
49 | |
45 |