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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

How get data in selected filters

Hi All,

I have 2 cards, each filtering information

jonathangsanto_0-1649984511842.png
Each of this information has a geographic location in my table

jonathangsanto_1-1649986558716.png

I need to get these coordinates based on the filter to calculate the distance between the points.

I tried:

Filters Selected =
IF (
ISFILTERED ( BH_gold[NumeroSerie] ),
CONCATENATEX ( FILTERS ( BH_gold[NumeroSerie] ), BH_gold[NumeroSerie], ", " ),
"ALL"
)
But that takes just one filter
can anyone help me?

 

1 ACCEPTED SOLUTION
AilleryO
Memorable Member
Memorable Member

Hi,

 

You could try :

 

Filters Selected =
VAR TempTable = SELECTCOLUMNS( BHGold, BH_gold[NumeroSerie] ) //Selet columns needed
VAR ListFilter1=
"*" & CONCATENATEX(TempTable "," & BH_gold[NumeroSerie] ) //creation of string
VAR ListFilter2 = SUBSTITUTE(DelimList1,"*-","") //cleaning of string
RETURN
ListFilter2
 
Tell us if it works...

View solution in original post

2 REPLIES 2

I used what you recommended and I set up the table model and it worked perfectly, thanks

AilleryO
Memorable Member
Memorable Member

Hi,

 

You could try :

 

Filters Selected =
VAR TempTable = SELECTCOLUMNS( BHGold, BH_gold[NumeroSerie] ) //Selet columns needed
VAR ListFilter1=
"*" & CONCATENATEX(TempTable "," & BH_gold[NumeroSerie] ) //creation of string
VAR ListFilter2 = SUBSTITUTE(DelimList1,"*-","") //cleaning of string
RETURN
ListFilter2
 
Tell us if it works...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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