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

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

Reply
Rohit_23
Regular Visitor

How to add rows in slicer

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:

sampleTEST 1TEST 2TEST 3
A22312
B54556
C339
D12561
E58654

Rohit_23_2-1680866372305.png

 

how to add slicer in a graph such that it shows only selected row data in a graph??

 

Thanks

2 ACCEPTED SOLUTIONS
DimaMD
Solution Sage
Solution Sage

@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]
)

 

 

DimaMD_1-1680869426684.png

 


DimaMD_0-1680869389414.png

 


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

View solution in original post

Alex_Sawdo
Resolver II
Resolver II

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. 

Alex_Sawdo_0-1680873038238.png

 

View solution in original post

6 REPLIES 6
Rohit_23
Regular Visitor

Sorry didnt get you solution, im have just started using BI for last few month.  can you elaborate what exactly i have do.

Alex_Sawdo
Resolver II
Resolver II

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. 

Alex_Sawdo_0-1680873038238.png

 

Hi @Alex_Sawdo, this sloution also worked for me, but its bit tricky

DimaMD
Solution Sage
Solution Sage

@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]
)

 

 

DimaMD_1-1680869426684.png

 


DimaMD_0-1680869389414.png

 


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Thanks a lot @DimaMD , this solution worked

DataVitalizer
Solution Sage
Solution Sage


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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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