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
nffcspw
Regular Visitor

Permutations and Combinations

Hi,

I have a table with one column containing a list of 12 values.

 

I would like to create a permutation and combination output from this list where I define how many values (x) are included in the output generation.  For example, to get all permutations of x from 12 where x could be 2 through to 12.  Similarly an output list for the combinations.

 

Is this possible?

thanks

Steve

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @nffcspw ,

 

You can use COMBIN() and PERMUT() functions to get the number. Here are the documents of these functions.
https://docs.microsoft.com/en-us/dax/combin-function-dax
https://docs.microsoft.com/en-us/dax/permut-function-dax

If you want to show every permutations, you can refer to this document which used power query.
https://www.thebiccountant.com/2018/05/03/permutations-table-in-power-bi-or-power-query-in-excel/

 

Note: This link contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

 

Best Regards,

Eads

 

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

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @nffcspw ,

 

You can use COMBIN() and PERMUT() functions to get the number. Here are the documents of these functions.
https://docs.microsoft.com/en-us/dax/combin-function-dax
https://docs.microsoft.com/en-us/dax/permut-function-dax

If you want to show every permutations, you can refer to this document which used power query.
https://www.thebiccountant.com/2018/05/03/permutations-table-in-power-bi-or-power-query-in-excel/

 

Note: This link contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

 

Best Regards,

Eads

 

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

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

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
Top Kudoed Authors