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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Thaung_Thaung
New Member

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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