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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
antmon99
Frequent Visitor

Slicer from one table to control data in a second

Hi all,

 

I have one table called [ETO] that has a bunch of rows with columns like 

Job

Month

Value

Supervisor

Sales Consultant

Suburb

 

I would like to be able to have a single visual or table based upon sum(value), count(jobs) and month  and then using a slicer - dynamically add either the Supervisor, Sales Consultant or Suburb field into the visual

 

This idea of it works by creating a calculated column in my table like this

ColumnTest = if(CALCULATE(VALUES( ETO[Supervisor]),ETO[Supervisor]]= "John Smith") = "John Smith", ETO[Supervisor], ETO[Suburb])

 

and then creating a slicer on column ETO[Supervisor] and choosing 'John Smith' - it will change the value of ColumnTest

 

However I believe the slicer cannot be related to my table if I wish to get useful results, so I created a second table [Table1] with the values in a column called Chooser

Supervisor

Sales Consultant

Suburb

 

I then create a slicer on this table in my report

 

And in my [ETO] table I created a calc column similar to the above

DynamicColumn = if(CALCULATE(VALUES( Table1[Chooser]),Table1[Chooser] = "Supervisor") = "Supervisor", ETO[Supervisor], ETO[Suburb])

 

However the new ETO[DynamicColumn] only returns me names of Supervisors regardless of what the slicer Table1[Chooserselection is

 

I was able to do this in a tableau report by creating a parameter with possible values and a dynamic column with nested case statements eg. NewColumn = case when parameter = 'Supervisor' then 'SupervisorColumn else 'SuburbColumn end

 

Is it possible to do something similar in Power BI

 

Thanks

Anthony

0 REPLIES 0

Helpful resources

Announcements
August Fabric Update Carousel

Fabric Monthly Update - August 2025

Check out the August 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors