Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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 !
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
104 | |
75 | |
43 | |
39 | |
32 |
User | Count |
---|---|
166 | |
90 | |
65 | |
46 | |
43 |