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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Dynamically change the table based on slicer selection.

Hi Team,

 

I have 2 Tables(Profit and Loss)which has same set of columns.
I have a slicer which has option to select : 1)Profit
2)Loss
If profit is selected in the slicer.
All my visuals should get the fields from Table : Profit

If Loss is selected in the slicer.
All my visuals should get the fields from Table : Loss.

Any idea or any link how can i go.
Thanks in advance !

 

4 REPLIES 4
PaulDBrown
Community Champion
Community Champion

You can create a separate table for the slicer using:

Metric = {"Profit", "Loss"}

Then create a measure along the lines of:

metric measure = IF(SELECTEDVALUE(Metric[Value]) = "Profit", [Sum Profit], [Sum loss])

 

where the sums follow this pattern:

Sum Profit = CALCULATE (SUM(Table[Value]), FILTER(Table, Table[Type] = "Profit"))

where 'Table' is the fact table and 'Table'[Type] is the field which establishes the type for the values.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Thanks for the reply.

Here i am not looking for sum and filter the column.

I am trying to select the Table based on the value selected in slicer.

i have more number of pages and many visuals across all pages.

All visuals and pages should point to the table based on slicer selection.

AbbasG
Memorable Member
Memorable Member

@Anonymous Hi, one way of achieving this is through bookmarks. Please refer to the below pbix file.
Hope it helps.
PBIX 

Anonymous
Not applicable

Thanks for the reply.

Yes bookmark will work.

But i have more number of pages and many visuals across all pages.

So book mark will be tough to handle.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.