This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I want to create a conditional custom in Power Query:
I have given the sample data and expected output:
Month (text) Emp id Segment Segment Transfer(Expected Output)
2023 01 Ab Sales 0
2023 12 Ab Sales 0
2023 01 AC Sales -1
2023 02 Ac Marketing 1
For example:
If Month = 2023 01 , emp id = abc and segment = "sales" compare this all the other months data if segment for the respective emp id changes look at the previous month for example if it changes at 5 th month the 4th month of the emp id should be "-1" and 5 th month should be "1" if no changes "0". The "-1","0","1" should be the Segment Transfer column i need to create.
HELP ME out for this one if someone knows it!
what are the conditions? write
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 26 | |
| 25 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 22 | |
| 19 | |
| 18 |