Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |