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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Table of all possible combinations

Hi, 

 

I have a list of 4 business units (BU) and I want to give each BU an score, A, B, C depending on some given criteria.  In below list there are 8 combinations, on rows 1-3 each BU gets the same score and on rows 5-8 there are some combinations with only A and B scores. How can I get a table of each possible combination?

 

#BU1BU2BU3BU4
1AAAA
2BBBB
3CCCC
4ABAA
5AABA
6AAAB
7ABBA
8ABBB

...and so on...

 

Best regards,

 

Chris

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous I think maybe this:

Table = 
    GENERATEALL(
        GENERATEALL(
            SELECTCOLUMNS({ "A", "B", "C" },"Value1",[Value]),
            SELECTCOLUMNS({ "A", "B", "C" },"Value2",[Value])
        ),
        GENERATEALL(
            SELECTCOLUMNS({ "A", "B", "C" },"Value3",[Value]),
            SELECTCOLUMNS({ "A", "B", "C" },"Value4",[Value])
        )
    )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Anonymous I think maybe this:

Table = 
    GENERATEALL(
        GENERATEALL(
            SELECTCOLUMNS({ "A", "B", "C" },"Value1",[Value]),
            SELECTCOLUMNS({ "A", "B", "C" },"Value2",[Value])
        ),
        GENERATEALL(
            SELECTCOLUMNS({ "A", "B", "C" },"Value3",[Value]),
            SELECTCOLUMNS({ "A", "B", "C" },"Value4",[Value])
        )
    )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi, @Greg_Deckler , thanks a lot, this works perfect.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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