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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
JKPBI
Frequent Visitor

Using Values Function with a Virtual Table from CalculateTable

Hi everyone:

 

I am basically trying to create a 'flag' on one table depending on whether or not the user appears in another table which I'm trying to first filter down. I need to get around making the flag on the 'one' side of the one-to-many relationship.

 

My thought process was to approach the 'flag' like so:

 

FLAG= 

VAR ActiveManyTable =

CALCULATETABLE(

'ManyTable',

'ManyTable'[Active?] = "Active"

 

Return

IF('OneTable'[MemberID] IN VALUES(ActiveManyTable),

True,

False

)

 

The VALUES() function is throwing an error about not receiving a column/table reference.. but isn't that what CalculateTable provides? I also cant seem to point to the MemberID column that exists in ManyTable after I've changed it to a CalculateTable()..

 

Basically a Member can have multiple rows of Memberships, but I'm only interested in if they're Active.. they can still have multiple Active rows.. hence the VALUES() use.

 

Hopefully this makes sense.. I can't share exact data but I guess I could mock up some dummy data if I had to

1 REPLY 1
speedramps
Super User
Super User

We want to help you but your description is too vaugue. Please write it again clearly.

Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want to do. That is crazy. 😀

 

Please just give a simple non technical functional decscription of what you want, then let us suggest the DAX. Thank you.

Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Also provide the example desired output, with a clear description of the process flow.

Remember not to share private data ... we don't want you to get into trouble. 😧

Take care to use the same table and field names in the input, output and description so we can understand your problem and help you.

You will get a quick response if you put time and effort into writing clear problem descriptions.

Vaugue descriptions can waste your time and ourtime.

Look foward to helping you when the above information is forthcoming

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.