Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Good afternoon,
I have a DAX formula that I would like to use in Power Query but am not even sure where to start. Hoping to get some guidance here. The code looks like this
NewStep=Table.AddColumn(#"_VIB Report 2022 07","ROLE",each List.Skip({{{"DYER, HEIDI S","DYER, HEIDI S"},"PCP"},{{"MINGS, JENNIFER ANNE","TANASBOURNE"},"CLINIC APC"},{{"HOJNACKI, LAUREN A","GLISAN"},"CLINIC APC"}},(x)=>x{0}<>{[STATUS CHANGED BY],[DEPARTMENT]}){0}?{1}? ?? "VIB")
Perhaps the better question is this. I have a table that has a column of names and a column of roles. There are a handful of people in the names column that have multiple roles depending on the deparment (also a column). What I would like to do is change those roles in the role column while retaining the role for the other folks in the name column. Does that make sense?
Here is a screen shot of the data
Thank you!
"am not even sure where to start"
Start by providing an explanation of what you want the code to accomplish; an example of the raw data; and an example of the desired output from your sample raw data.
@ronrsnfld please see message 4. You will find the screenshot there as well as the "whys". Thanks!
@MBWATSON I don't find the screenshot helpful at all to me. Maybe someone else will understand it better.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
8 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |