Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Consider Table1 below , also note I'm not able to use Power Query currently for below report.
user_key | FYear |
001 | 14/15 Q4 |
002 | 15/16 Q1 |
003 | 15/16 Q1 |
004 | 15/16 Q2 |
I want to create a new table (Table2) with the format below. It will capture all discint values from Table1[FYear] column.
@ddecker
FYear | idx |
14/15 Q4 | 1 |
15/16 Q1 | 2 |
15/16 Q2 | 3 |
Solved! Go to Solution.
Hi, @giordafrancis
I only know how to create this table in two steps. I could not find a way to create it in one step.
step 1. create a Table
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
Hi, @giordafrancis
I only know how to create this table in two steps. I could not find a way to create it in one step.
step 1. create a Table
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
Here's how to do it in one go:
[New Table] =
addcolumns(
distinct( YourTable[FYear] ),
"idx",
var CurrentFYear = YourTable[FYear]
return
countrows(
summarize(
filter(
YourTable,
YourTable[FYear] <= CurrentFYear
),
YourTable[FYear]
)
)
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |