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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ishade
Regular Visitor

How can I get dynamic table using filtered data by slicer value on other table?

Hi

I have two tables, 'customer' and 'rate'. 

I want fill up 'rate' table with data of filtered 'customer' table, of which procedure is

 

ishade_0-1741419682150.png

1. Select a customer by slicer or filter ('10000' is selected by a slicer on above screenshot)

2. Get rate column (90, 85, 83) of filtered '10000' table (left on the screenshot) 

3. Fill those up on rate column of rate table (middle) along with the corresponding categories.

 

That is, I want to refer the customer as variable (not constant). 

So I tried to use selectedvalue, allselect, lookupvalue, filter...but failed to get the result I want.

It would be highly appreciated if anyone can help me. What shall I do?

1 ACCEPTED SOLUTION
Deku
Super User
Super User

Assume this is what you are looking for

 

Var rate= 

Calculate(

Max( customer[rate] ),

Treatas( values( rate[category], customer[category])

)

Return 

If( not isblank( rate), rate, "")


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

3 REPLIES 3
Deku
Super User
Super User

Assume this is what you are looking for

 

Var rate= 

Calculate(

Max( customer[rate] ),

Treatas( values( rate[category], customer[category])

)

Return 

If( not isblank( rate), rate, "")


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

What should happen if the CALCULATE returns BLANK() ?  Consider using COALESCE().

ishade
Regular Visitor

Dear Deku

I am extremely pleased to report that your answer worked !!!

I modified your statement (RET and IF rows made errors) and got the exact result I want.

ishade_0-1741429092194.png

Again, I appreciate it very much. Have a nice day!!!

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors