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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
PSan1979
Helper II
Helper II

Need to create Bucket based on Group

Hi Experts,

 

I have two tables (Table 1 and Table 2 in my data model and is joined by Surid). I want to vloop (if Surid from table 2 exist in Surid1 from Table1 then fetch SURID,Gender,Studying,finished.)

 

Can you please guide me how to do it.

 

Bucketing.JPG

5 REPLIES 5
V-lianl-msft
Community Support
Community Support

Hi @PSan1979 ,

 

Not very intelligent, but may be able to meet your needs.

Create an index column in the query editor, and then create a calculated column with dax.

Bucket = 
    SWITCH (
        TRUE (),
        'Table'[Index] < 5, "8320-8505",
        'Table'[Index] < 10, "8333-8524",
        BLANK ()
    )

TEST_Need to create Bucket based on Group.PNG

 

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

Is It possible to create a separate table. and VLOOP Table2 from Table 1. if its matches then display value else blank

 

IDCOL1 COL 2
SURID1XXX1
SURID21XXX

 

 

Hi @PSan1979 ,

 

Unpivot then create a 1-* relationship with table2

 

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

It should fetch Min & Max dynamically.

 

Bucket = 
    SWITCH (
        TRUE (),
        'Table 1' Surid In Min(Surid) && Max(Surid)
        BLANK ()
    )
amitchandak
Super User
Super User

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors