This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I hope everyone is doing well.
I am generating two random numbers as follows:
Measure1 = var a = Calculate(Rand()*10) return a
Measure2 = var b = Calculate(Rand()*20) return b
whenever i try to subtract these numbers e.g.
Measure3 = Measure1 - Measure2
or
Measure3 = var c =Calculate(Measure1 - Measure2) return c
It doesnot give me the right answer.
Please help
Solved! Go to Solution.
@Anonymous
Since you use RAND function, it always generates a new number at the time computation. It doesn't store the values and its not static.
Let me know what you are trying to achieve.
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hi @AllisonKennedy ,
Yeah, I am trying to do whatif analysis but on random values. It is not producing the right results.
As you can see the result(EBIT0) is not correct.
Formula:
EBIT0 = [Vdp0_rand]-[Cons0_rand]-[Cserv0_rand]-[Clav0_rand]-[Gbt0_rand]-[Amm0_rand]
Hi @Anonymous ,
If you make sense, can you please accept the helpful answers as solution? Others who have the same questions will find answers esily and quickly. They will benefit from your thread. 😉
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@Anonymous
Since you use RAND function, it always generates a new number at the time computation. It doesn't store the values and its not static.
Let me know what you are trying to achieve.
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 33 | |
| 25 | |
| 23 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 27 | |
| 22 | |
| 22 |