Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I have created a column to get the Max Date from a Date column in my table and now I want to create a new column to get the Previous Max Date.
I tried this to get the it:
Table.AddColumn(#"Changed Type10", "Prev Max Rate Date", each Date.From(List.Max(#"Changed Type10"[Rate Start Date]))<(#"Changed Type10"[Max Rate Date]))
Here's what I used to get Max Date:
Table.AddColumn(#"Added Custom3", "Max Rate Date", each Date.From(List.Max(#"Added Custom3"[Rate Start Date])))
What steps do I need to take after adding my Max Date column to get Prev Max date?
Thanks
Solved! Go to Solution.
Hi @Anonymous
You can try the following code.
Table.AddColumn(#"Changed Type10", "Prev Max Rate Date", each List.Max(Table.SelectRows(#"Changed Type10",each [Rate Start Date]<[Max Rate Date])[Rate Start Date]))
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You can try the following code.
Table.AddColumn(#"Changed Type10", "Prev Max Rate Date", each List.Max(Table.SelectRows(#"Changed Type10",each [Rate Start Date]<[Max Rate Date])[Rate Start Date]))
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 5 | |
| 5 |