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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lilyyan
Frequent Visitor

slicer result to be used in column

I need to use the slicer result to dynamatically show the estimation of expense, but get stuck on how to use the slicer result. 

 

my design is to add a column in the table (or in other table is okay) with formular: Selected = if ( the cell of Name is selected, 1, 0); then I can do many things based on the new added column.

 

slicer table:

Name

A
B
C
D
E
F
G
H
I
J
K
L
M
N
2 REPLIES 2
TomMartens
Super User
Super User

Hey,

 

unfortunately it's not possible to use selection from slicers to populate columns in tables, this is because calculated columns are evaluated during the refresh of the data model.

 

Slicer are a UI component as any other visual, that interacts with the model (the refreshed model), so for this reason you just can use measures.

 

Maybe you can describe one of the many things you want to do, this makes things a lot easier to provide further assistance.

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hi, Tom

Thanks for your help.

the whole thing I want to do is to estimate the budget of different people with one dynamic element "location" to see the influence of location changes and determine the best location arrangement accordingly.

 

I have 13 people (Table 2), locating in two locations (column location in Table 2 should be calculated whether selected or not in Table 1). The final result of Column expense will vary depending on the column "location" in Table 2.

the rough column formulas:

Table 2 [location] = if (table 1[Name] is selected, "South", "North")

Expense = Cost in NonAsia * # in NonAisa + Cost in Asia * # in Asia + if (Table 2 [location] = "south", Cost in North * # in North, Cost in South * # in South)

 

 

Table 1 Table 2  
Name Name# in Asia# in NonAsia# in South# in NorthLocation 

Table 3

Location

Round Trip FlightsHotelMealNightsCost
A A1 812North NonAsia20002007553375
B B 122South Other4001505051400
C C1 53North North4001505051400
D D  12South South4001505051400
E E  2 North Asia5802007551955
F F3  3North       
G G 1 3North       
H H   3North       
I I  31North       
J J1   North       
K K    North       
L L 2  North       
M M   4North       

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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