Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Dear All,
I need to produce two columns, A & B.
In column A : I need to count rows from 1 till 7 and the restart the counter in next row just as in the visual below until the end of the paticular stock eg AAPL.
In column B : I need to give a consecutive unique ID per group of 7 eg. AAPL1 ... AAPL2 ... AAPL3 ...
Would need to create this using calculated columns, i have been trying for hours whithout any luck.
Thnak you for any possible help
Solved! Go to Solution.
@Anonymous , create a new column like
New column = "APPL" & (Quotient([countrows test] -1,7) +1 )
Hi @Anonymous 👋
Can you explain how you generated the "Countrows test" column in the first place ? I need a similar field to create an id identifying which data came before which.
Many thanks and have a great day, 🙂
Hi,
Paste data in a format that can be taken to an MS Excel file. Also, against which number of column A do you want see AAPL1 or AAPL2 - should it be against 1 or 7?
Can you please do such calculations in Power Query, not in DAX? Power Query is the right place for this. In DAX it's possible but will be 1) ugly and 2) slow.
Hi,
How about doing somting like the following:
Dividing the cycle length into 4 pieces each piece has 2 rows (Dates). Then take the sum of the change column and avarege it out. How would you implement something along those line?
THanks for any help
Hi Amitchandak,
Uuff!!! Thank you very much for the reply, supper easy solution. I was able to create both needed column with your Dax formula.
Million thanks,
Kr
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 65 | |
| 31 | |
| 26 | |
| 26 |