Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi, I have a table with three columns like this : Year, Name, Budget.
I would like to iterate over the rows in order to get a new column representing the number of rows in the complete table that has a year between the year of the current row minus one and the year of the current row minus five.
So the condition for the row count is also row based.
How can I do that please ?
Thanks 👍
Hi, @MoaMaime
Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Well data are really simple, for example as follow. I added the wanted column (named ColumnWanted) at the far right with the wanted values for this example.
| Year | Name | Budget | ColumnWanted |
| 2019 | A | 159 | 2 |
| 2021 | B | 147 | 1 |
| 2014 | C | 123 | 0 |
| 2015 | D | 59 | 1 |
Thank you !
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 |
|---|---|
| 53 | |
| 40 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 34 | |
| 33 | |
| 30 |