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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AO1
Frequent Visitor

Create data table using slicer selection

Hi,

 

I will really appreciate help with this problem.

I want to create a new data table, Table 2, based on slicer selection of an existing table, Table 1.  

Table 1 contains a variable called "Type", which contains the following values (A, B, C, D).

I want the newly created data table, Table 2, to have a variable also called "Type", which will contain just 2 values. One of the values is "Y", the other value is the value selected by the slicer.

This means one of the values in Table 2 will be constant, which is "Y", the other value will be dynamic depending on slicer selection of Table 1 values.

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

 When you create a calculated table in a table, any selection that you make on your report canvas is not known to the formula in the calculated table because what's happens is the order in which the stages take place. First the model is completed then the tables are ready for report building. Try to build a measure instead which can make use of the slicer selection. I hope this is clear. 

 

@AO1

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
FreemanZ
Community Champion
Community Champion

hi @AO1 ,

 

that can't be all the story. what do you plan to do with table2?

 

BTW, calculated table/column is not supposed to respond any visual actions, like slicer selections.

Fowmy
Super User
Super User

 When you create a calculated table in a table, any selection that you make on your report canvas is not known to the formula in the calculated table because what's happens is the order in which the stages take place. First the model is completed then the tables are ready for report building. Try to build a measure instead which can make use of the slicer selection. I hope this is clear. 

 

@AO1

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.