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.
Hello,
I would like to recreate query from Access to PowerQuery M language, but I have a problem to do it. Could you help me with that?
IIf (Pivot1.[Sales Country Code]=Pivot1.[Sales Orig Country Code],
IIf((Pivot1.Supplier="LH" And Pivot1.[Sales Dest Country]="DE" ) OR (Pivot1.Supplier="LX" And Pivot1.[Sales Dest Country]="CH" )
OR (Pivot1.Supplier="OS" And Pivot1.[Sales Dest Country]="AT" ) OR (Pivot1.Supplier="SN" And Pivot1.[Sales Dest Country]="BE" ),"P2P",
IIF(Pivot1.[Sales Dest Area]="EU","EU<>P2P",Pivot1.[Sales Dest Area])) ,
IIF(Pivot1.[Sales Dest Country]= Pivot1.[Sales Country Code], "XBorder","Transversal" )) AS [O&D Traffic],
Solved! Go to Solution.
Forget about it! I did it by myself. The solusion is:
if [Sales Country Code]=[Sales Orig Country Code] then
(if ([Supplier] = "LH" and [Sales Dest Country]="DE") or ([Supplier] = "LX" and [Sales Dest Country] = "CH")
or ([Supplier]="OS" and [Sales Dest Country]="AT") or ([Supplier]="SN" and [Sales Dest Country]="BE")
then "P2P"
else (if [Sales Dest Area]="EU" then "EU<>P2P" else [Sales Dest Area]))
else (if [Sales Dest Country]=[Sales Country Code] then "XBorder" else "Transversal")
Forget about it! I did it by myself. The solusion is:
if [Sales Country Code]=[Sales Orig Country Code] then
(if ([Supplier] = "LH" and [Sales Dest Country]="DE") or ([Supplier] = "LX" and [Sales Dest Country] = "CH")
or ([Supplier]="OS" and [Sales Dest Country]="AT") or ([Supplier]="SN" and [Sales Dest Country]="BE")
then "P2P"
else (if [Sales Dest Area]="EU" then "EU<>P2P" else [Sales Dest Area]))
else (if [Sales Dest Country]=[Sales Country Code] then "XBorder" else "Transversal")
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.