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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
xhulioberberi
Frequent Visitor

Store data from a selected value in a slicer and use those data to filter another table

Hello everyone,

Thank you again for your time here and it is very helpfull what you are doing here. I am working currently in one project with big data and want to improve some of our visualizations. I will get very easily and not complicated. What I want to do is to use the data that is filtered from a slicer and use those to filter another table. Maybe using DAX measures to store the data from this filtered table and then with those data I will filter another one. I don't want to do this manually because what I am working for is quite a lot data and it will take a lot of time to take manually and filter the other table. I am using this example just for explanation purpose only.

Thanks a lot!

 

Screenshot 2022-10-07 112123.png

1 ACCEPTED SOLUTION

I just give the name to understand. it means the column name on top of it you are going to check the value returned from AllSelected('Table'[Inv.Nr]) 

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @xhulioberberi ,

Have you resolve the issue now? If so, please provide the answer and mark the reply to the solution to close the case. If not, please provide your pbix file without privacy information and desired output with more details. 

 

Best Regards

Community Support Team _ Polly

 

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

Aburar_123
Resolver IV
Resolver IV

Hi @xhulioberberi ,

 

For example if you want to use that filtered list of 'Table'[Inv.Nr] values in any measure then you can get it by writing like Allselected('Table')

 

Can you write me an example please? And the measure I should put it to the other table?

Hi @xhulioberberi ,

 

May i know what do you mean by the word "the measure I should put it to the other table" exactly.

 

My understanding from this statement is that you need to hold that filtered list of Inv.Nr as a measure table to use it in a measure called Test then in that case you can write like below,

 

Test = 

var Filtered_list_of_InvNr = AllSelected('Table'[Inv.Nr]) 

return if(InvNr_from_another_table IN Filtered_list_of_InvNr, 1, 0)

So from the data that has been filtered Inv.Nr so 1114,1115,1116 and 1117. I want to freeze these data in one measure or something else and then this data I want to use to filter another table.

You can also use values('Table'[Inv.Nr]) instead of AllSelected('Table'[Inv.Nr]) 

Sorry because I am new at Power BI,

I don't understand this statement (InvNr_from_another_table what should this be?

I just give the name to understand. it means the column name on top of it you are going to check the value returned from AllSelected('Table'[Inv.Nr]) 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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