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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I want to assign random values between 1 to 30 for a particular category "C" alone,means all other categories will have a value of 0.
How can I achieve this?
Solved! Go to Solution.
What error message are you getting?
Otherwise if Randbetween is not working you could use something like
Column = IF('Table'[Categ] = "C",RAND()*(30-1)+1,0)
Hi,
Is this what you're after?
Column = IF('Table'[Categ] = "C",RANDBETWEEN(1,30),0)
I tried doing that but getting an error.Thanks for responding.
What error message are you getting?
Otherwise if Randbetween is not working you could use something like
Column = IF('Table'[Categ] = "C",RAND()*(30-1)+1,0)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 52 | |
| 45 | |
| 23 | |
| 21 |
| User | Count |
|---|---|
| 141 | |
| 113 | |
| 50 | |
| 37 | |
| 30 |