The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I am trying to implement this logic but couldn't make it so far. This is as follows:
I have a table like this:
ID | From | To |
11 | 0 | 2 |
22 | 1 | 3 |
I would like to break it down into 1 increment so:
ID | Num |
11 | 0 |
11 | 1 |
11 | 2 |
22 | 1 |
22 | 2 |
22 | 3 |
Please advice!
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
Please select “Custom Column” in Power Query, and enter the following formula.
You will get a new column as below.
Click on the upper right corner and select “Expand to New Rows”.
Then you can get result you want.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please select “Custom Column” in Power Query, and enter the following formula.
You will get a new column as below.
Click on the upper right corner and select “Expand to New Rows”.
Then you can get result you want.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can add a custom column in Power Query like
{[From]..[To]}
then Expand it to New Rows
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |