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
Anonymous
Not applicable

Unable to find way to write Measure for finding list of values available in a table in DAX.

Hi Team,

 

I need a help in writing a Measure using DAX . 

Scenario1: I have a list of values , for which i want to view data in a table visual. I want to place a measure which filters data. I have a thousands of records in the table out of which i need to select a hundreads of records in filter.

Table Example - Customer

Customer _IDCustomer_Name
1001Philips
1002Warner
1003Curran
1004Joseph
1005Steve

 

I need to create a measure so that i can place that measure on visual filter level to see only for records 101 and 102.   

So wanted to check best possible way to write the measure .

Tried Below way but it throws Resource memory exceeded issue.
VAR CSList = MAX(Customer[Customer_ID])
VAR HL = {"I001","I002","I003","I004","I005","I006","I007","I008","I009","I010","I011","I012","I013","I014","I015","I016","I017","I018","I019","I020","I021","I022","I023","I024","I025","I026","I027","I028","I029","I030","I031","I032","I033","I034","I035","I036","I037","I038","I039","I040","I041","I042" }
RETURN
IF((CSList in HL),1,0)

 

Any help is highly appreciated.

1 REPLY 1
lbendlin
Super User
Super User

This works fine on my PC.  How much RAM does yours have?

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.

Top Solution Authors