The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I have a table with an ID column and three dimensions A, B and C.
I would like to add a fourth column, a random number, evenly distributed throughout a partition of A, B and C.
Is this possible please?
Thank you.
Hi, @Griffin_BI
You can create a Custom Column in PowerQuery and use
=Number.RandomBetween(0,6)
The numbers in parentheses are a range of the numbers you want to random
Here is my preview in report view
You will get a different number with each refresh.
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |