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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SBR1D
Helper III
Helper III

Calculated table variables

Hello

 

I've got a table where applicants have multiple rows depending on the application stage they are at.  I want to bring back a table of anyone that is of status code 1 OR 2 AND 5. Here is what i have so far, not sure if i am going about it the right way though. 

 

Thanks in advance

invited or new = VAR inv_or_new =  CALCULATETABLE('Application Progress Links','Application Progress Links'[Status (Code)] IN {1,2})
                
                VAR signed_up = CALCULATETABLE('Application Progress Links','Application Progress Links'[Status (Code)] =5 )
    RETURN  signed_up IN inv_or_new
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SBR1D ,

Please try to create a new table with below dax formula:

New Table =
VAR invited_or_new =
    CALCULATETABLE (
        'Application Progress Links',
        'Application Progress Links'[Status (Code)] IN { 1, 2 }
    )
VAR signed_up =
    CALCULATETABLE (
        'Application Progress Links',
        'Application Progress Links'[Status (Code)] = 5
    )
VAR combined_table =
    UNION ( invited_or_new, signed_up )
VAR final_table =
    INTERSECT ( invited_or_new, signed_up )
RETURN
    final_table

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @SBR1D ,

Please try to create a new table with below dax formula:

New Table =
VAR invited_or_new =
    CALCULATETABLE (
        'Application Progress Links',
        'Application Progress Links'[Status (Code)] IN { 1, 2 }
    )
VAR signed_up =
    CALCULATETABLE (
        'Application Progress Links',
        'Application Progress Links'[Status (Code)] = 5
    )
VAR combined_table =
    UNION ( invited_or_new, signed_up )
VAR final_table =
    INTERSECT ( invited_or_new, signed_up )
RETURN
    final_table

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ryan_mayu
Super User
Super User

could you pls provde some sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors