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

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

Reply
groetschel
Regular Visitor

Filter table based on an indepentend slicer

Hey guys

I am trying to do something real simple, but I don't get it.

 

I am trying to create a new filtered table based on an existing one

Filtered Project Budget per Country = filter('Project Budget per Country','Project Budget per Country'[str_country]='Selector Table'[selected])

If I replace 'Selector Table'[selected] with "d2" everything works fine, but I would like to use a dynamic value of a slicer to filter the table.

 

So, I tried to create a helper table with

Selector Table = values('RSU BU SQL'[BU description])

and added a measure like this

selected = if(HASONEVALUE('RSU BU SQL'[BU description]),VALUES('RSU BU SQL'[country cod]),"xx")

 

If I create an element to show the [selected] value it shows the correct value for the filter "d2", but somehow the "Filtered Project Budget per Country" stays empty...

 

Please help...

Regards,

Gunnar

 

1 ACCEPTED SOLUTION

Hi @groetschel 

Please check the result bellow,

vxiaotang_0-1642657572618.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
groetschel
Regular Visitor

Hi

This does not work and maybe I wasn't clear enough. That's why I created this simple example: 

First table: BU with column "BU" values d2, nl, ru

Second table: Projects with  column (lid, Days, Code, BU) values (1,100,JUHU,d2) and (2,80,RECO,d2)

Third table: ProjectBudget with column (fklid, BU, Budget) values (1,d2,20) and (1,ru,80)

Relations: BU[BU] -- Projects[BU], Projects[lid] -- ProjectsBudget[fklid]

 

I created a slicer for BU table.

 

And a table with columns: Projects[Days, BU, Code],ProjectBudget[Budget]

 

Selecting "d2" in the slicer should show the following:

[Days,BU,Code,Budget]

100,d2,JUHU,20 <-- and here is the challenge: The slicer should filter the table, but show only the ProjectBudget values for d2.

80,d2,RECO,

 

Screen Shot 2022-01-17 at 11.58.51 AM.png

 

Please help.

PBIX file: https://kicg-my.sharepoint.com/:u:/g/personal/ggroetschel_kaizen_com/Ef16Ex_xAYJOriacxggAnIQBs4gAAo3...

 

Regards,

Gunnar

Hi @groetschel 

Please check the result bellow,

vxiaotang_0-1642657572618.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

It is working! But I cannot figure out, how you did it.

Could you explain, please?

Regards,

Gunnar

Hi @groetschel 

😁select this,

vxiaotang_0-1643091971382.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@groetschel Try:

Filtered Project Budget per Country = filter('Project Budget per Country','Project Budget per Country'[str_country]=MAX('Selector Table'[selected]))

 

Or you could use SELECTEDVALUE or if you want multiple use DISTINCT and IN



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.