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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Analitika
Post Prodigy
Post Prodigy

Get array from measure

need to take array from other measure

 

Measure = {"MU", "DU", "DS"}

 

Measure2 =

 

Var findVal = [Measure]

RETURN

...some code..
FILTER (
'Table1',
NOT ('Table1'[ZU0_KOD] NOT IN findVal)
)

10 REPLIES 10
Dwesty_A
Frequent Visitor

Have you get the answer? I have the same problem like you.  I must make Venn Diagram, but exact value not return unique value.

amitchandak
Super User
Super User

@Analitika , you asked a similar question about the same. what is the object here?

in Dax better to return a table

https://docs.microsoft.com/en-us/dax/datatable-function

Var can be a list, measure needs to be a value.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

it is not the same, and i didint get answer

@Analitika , when what pass values from Measure. If typically test for some value like

 

maxx(filter(values(Table[col]), not(isblank([measure])),[Measure2])

 

Here non-blank value of the measure for col will pass. So what is the  need in this case? Can you elaborate.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I have 100 measures like

Measure = "MU" ' as static variable, so i can easy change in one place, rather change all 100 measures

 

 

Measure2 = 

Var findVal = [Measure ]
RETURN

...some code..

FILTER (
'Table1',
FIND ( findVal, 'Table1'[ZU0_KOD], , 0 ) = 0
)
 
Now i need to have multiple values, which will changes every week
So i need something like that
 

Measure = {"MU", "DU", "DS"}

 

Measure2 =

 

Var findVal = [Measure]

RETURN

...some code..
FILTER (
'Table1',
NOT ('Table1'[ZU0_KOD] NOT IN findVal)
)

@Analitika , This is an interesting use case. And I can only say suggest something after I solve it. Would it possible to share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @Analitika ,

 

Try to do like this.

v-lionel-msft_0-1597990475297.png

 

Best regards,
Lionel Chen

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

 

TY, i already did like this, but i need get this array TO variable from other Measure

Hi @Analitika ,

 

v-lionel-msft_0-1598336039373.png

But the measure does not support this grammatical structure.

 

Best regards,
Lionel Chen

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

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.