Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
IF and SWITCH have their own set of rules?
IF-
Tried using the IF function, its doesnt allow to use it more than 3 times?
Error-"Too many arguments were passed to the IF function. The maximum argument count for the function is 3."
Solved! Go to Solution.
@Anonymous
Column = if(Sheet1[Month]="Jan","Fisrt",
IF(Sheet1[Month]="feb",what's the result for feb?
IF(Sheet1[Num]=2,"Second","Good",//this IF staement is completed, you can't have the below statments
IF(Sheet1[Month]="Mar","Third"))))
please make sure if statment has three parameters (condition, true, false)
SWITCH
What's the higher priority column of this? you can't put two columns in the switch. please share the sample data and explain the logic.
Work type ref 1 = SWITCH(Sheet1[Project Portfolio Name]="none",
Sheet1[Project ID]="XX1001","Vacation",
Sheet1[Project ID]="XX1002","Vacation",
Sheet1[Project ID]="XX1003","Vacation",
Sheet1[Project ID]="XX1004","Vacation",
Sheet1[Project ID]="XX1005","Vacation",
Sheet1[Project ID]="XX1006","Vacation","Non- Proj",
Sheet1[Project Portfolio Name]="Run the Business (RTB)","RTB")
maybe you can try
Column = IF(Sheet1[Project Portfolio Name]="none",SWITCH(TRUE(),Sheet1[ProjectID] in {"XX1001","XX1002","XX1003","XX1004","XX1005","XX1006"},"VACATION","NON-PROJ"),IF(Sheet1[Project Portfolio Name]="Run the Business (RTB)","RTB"))
if the value of project porfolio name is blank instead of TEXT "none", you can try
Column = IF(isblank(Sheet1[Project Portfolio Name]),SWITCH(TRUE(),Sheet1[ProjectID] in {"XX1001","XX1002","XX1003","XX1004","XX1005","XX1006"},"VACATION","NON-PROJ"),IF(Sheet1[Project Portfolio Name]="Run the Business (RTB)","RTB"))
Proud to be a Super User!
@Anonymous
Column = if(Sheet1[Month]="Jan","Fisrt",
IF(Sheet1[Month]="feb",what's the result for feb?
IF(Sheet1[Num]=2,"Second","Good",//this IF staement is completed, you can't have the below statments
IF(Sheet1[Month]="Mar","Third"))))
please make sure if statment has three parameters (condition, true, false)
SWITCH
What's the higher priority column of this? you can't put two columns in the switch. please share the sample data and explain the logic.
Work type ref 1 = SWITCH(Sheet1[Project Portfolio Name]="none",
Sheet1[Project ID]="XX1001","Vacation",
Sheet1[Project ID]="XX1002","Vacation",
Sheet1[Project ID]="XX1003","Vacation",
Sheet1[Project ID]="XX1004","Vacation",
Sheet1[Project ID]="XX1005","Vacation",
Sheet1[Project ID]="XX1006","Vacation","Non- Proj",
Sheet1[Project Portfolio Name]="Run the Business (RTB)","RTB")
maybe you can try
Column = IF(Sheet1[Project Portfolio Name]="none",SWITCH(TRUE(),Sheet1[ProjectID] in {"XX1001","XX1002","XX1003","XX1004","XX1005","XX1006"},"VACATION","NON-PROJ"),IF(Sheet1[Project Portfolio Name]="Run the Business (RTB)","RTB"))
if the value of project porfolio name is blank instead of TEXT "none", you can try
Column = IF(isblank(Sheet1[Project Portfolio Name]),SWITCH(TRUE(),Sheet1[ProjectID] in {"XX1001","XX1002","XX1003","XX1004","XX1005","XX1006"},"VACATION","NON-PROJ"),IF(Sheet1[Project Portfolio Name]="Run the Business (RTB)","RTB"))
Proud to be a Super User!
@Anonymous , like this try SWITCH true
SWITCH(true(), Sheet1[Project Portfolio Name]="none","Vacation",
Sheet1[Project ID]="XX1001","Vacation",
Sheet1[Project ID]="XX1002","Vacation",
Sheet1[Project ID]="XX1003","Vacation",
Sheet1[Project ID]="XX1004","Vacation",
Sheet1[Project ID]="XX1005","Vacation",
Sheet1[Project ID]="XX1006","Vacation","Non- Proj",
Sheet1[Project Portfolio Name]="Run the Business (RTB)","RTB")
Stilll the same 😞
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
98 | |
79 | |
65 | |
60 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |