Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I have a dummy dataset that does not have a date column, Is there a way of generating random dates between a time frame in Power BI?
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, here is my solution.
You can create a calculated column by using RANDBETWEEN function.
I made a sample for you to reference.
Column = RANDBETWEEN(DATE(2022,10,1),DATE(2022,11,20))
Final output:
Remember that the data type of the "column" should be "DATE" or "DATE/TIME".
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, here is my solution.
You can create a calculated column by using RANDBETWEEN function.
I made a sample for you to reference.
Column = RANDBETWEEN(DATE(2022,10,1),DATE(2022,11,20))
Final output:
Remember that the data type of the "column" should be "DATE" or "DATE/TIME".
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |