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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Thaung_Thaung
Regular Visitor

Generate Random Num from column to use not random number for another column

All Power BI Expert,

Eg, I generate Column A with Random Number, But for Column B, I want to copy and use that column A number as not a random number for column B

In Excel, we can copy and paste as a value.

 

 

Thank you for your help

1 REPLY 1
PiEye
Resolver II
Resolver II

Hi @Thaung_Thaung  , can you elaborate more on what you are trying to do in PowerBI with the random numbers?

There is a RAND() function in DAX, if you apply this to  a measure you can then reference that same random number in other measures.

 

EG, we have the measures

A (random) = RAND()
B = [A (random)] +1
 
Results in the following:
PiEye_0-1680979337704.png

 

You can see here that the figure in [A] persists, and is not generated again in [B]

 

I think it would help to understand what you are trying to achieve, though.

 

Pi

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.