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
pji
Advocate I
Advocate I

Create dynamic tables based on filters

Hi, I would like to know if I can create a dynamic table in Power BI based on a report filter? 

 

I am trying to write this query:

 

SummaryTable = CALCULATETABLE(SUMMARIZE('Sheet1','Sheet1'[team_ID]), FILTER('Sheet1', SELECTEDVALUE(Sheet1[team_ID])))

 

But it doesn't work. The SELECTEDVALUE() works fine for measures, but not at all for table creation or a role creation for RLS.

 

Please help.

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @pji,

 

Not like measures, calculate columns/tables are computed during database processing(e.g. data refresh) and then stored in the model, they do not response to user selections(or other filters) on the report.

 

So it is not possible to create a calculate column/table that can change dynamically with user selections(or other filters) on the report.

 

Regards

View solution in original post

2 REPLIES 2
gelogelo91
New Member

Do you know if there is any possibility to create a matrix table with dinamic number of coordenates? I have tried to created a calculated table with GENERATEALL and GENERATESERIES, but as calculated table can be use with HASONFILTER it is not working? I'm a little lost on how to do it? 

Thanks

v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @pji,

 

Not like measures, calculate columns/tables are computed during database processing(e.g. data refresh) and then stored in the model, they do not response to user selections(or other filters) on the report.

 

So it is not possible to create a calculate column/table that can change dynamically with user selections(or other filters) on the report.

 

Regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.