Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
HI,
I'm wondering how to assign a date in a custom column based on data in another column. I'm new to BI and not able to find a solution.
Here's the picture. The data repeats on the first row of every data set. How do i know to identify that break and assign the dates?
This could be very simple with IF statements but the trick is the format is set to text, so not sure how to proceed. Any ideas?
Solved! Go to Solution.
Hi @drallam,
You can open Query Editor, add a custom column like below. It will return errors if the value is not a valid date.
Then you can use Replace errors feature to replace errors as null. Utilize Fill-> Down feature to fill null values.
Best Regards,
QiuyunYu
Hi @drallam
Any chance you can mock up an example of what you'd like the data in the new column to look like for this data? Maybe use Excel to create an example and post the info,
6/12/2017 | 6/12/2017 |
6/12/2017 | 124 |
6/12/2017 | 437 |
6/12/2017 | 443 |
6/12/2017 | 306 |
6/12/2017 | 338 |
6/12/2017 | 354 |
6/12/2017 | 143 |
6/12/2017 | 418 |
6/12/2017 | 399 |
6/12/2017 | 465 |
6/12/2017 | 238 |
6/13/2017 | 6/13/2017 |
6/13/2017 | 299 |
6/13/2017 | 399 |
6/13/2017 | 100 |
6/13/2017 | 492 |
6/13/2017 | 498 |
6/14/2017 | 6/14/2017 |
6/14/2017 | 232 |
6/14/2017 | 416 |
6/14/2017 | 180 |
6/14/2017 | 307 |
6/14/2017 | 378 |
So the original data set is Column B. The intent is to create a custom column A and somehow apply a formula. First step is to referecne only the date cells and paste them in column A. Second Step is Goto>Special>BlankCells> then the cells get selected and then click uparrow and then ctrl+enter. It reference the above cell to the blank ones. How can we get this logic here.?
Hi @drallam,
You can open Query Editor, add a custom column like below. It will return errors if the value is not a valid date.
Then you can use Replace errors feature to replace errors as null. Utilize Fill-> Down feature to fill null values.
Best Regards,
QiuyunYu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |