Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Multiple conditions

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!




1 REPLY 1
Ahmedx
Super User
Super User

what are the conditions? write

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.