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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Chants89
Regular Visitor

IF Statement with multiple conditions

Please can someone help me with this IF statement and let me know what I am doing wrong:
 
IF(AND(SUM('Values'[Values])<=SUMX(FILTER(JoinedExtractData,JoinedExtractData[measure var _last6]*4),SUM('Values'[Values])>=SUMX(FILTER(JoinedExtractData,JoinedExtractData[measure var _last6]*0.75),2,
IF((SUM('Values'[Values])<SUMX(FILTER(JoinedExtractData,JoinedExtractData[measure var _last6]*4),1,
IF(SUM('Values'[Values])>SUMX(FILTER(JoinedExtractData,JoinedExtractData[measure var _last6]*0.75),3,0)))))
 
I keep on getting the following error:
Too many arguments were passed to the SUMX function. The maximum argument count for the function is 2.
 
1 REPLY 1
amitchandak
Super User
Super User

@Chants89 , The first filter end here

FILTER(JoinedExtractData,JoinedExtractData[measure var _last6]*4)

 

Then there is comparison , the sumx never end

SUM('Values'[Values])>=SUMX(FILTER(JoinedExtractData,JoinedExtractData[measure var _last6]*0.75),2,
IF((SUM('Values'[Values])<SUMX(FILTER(JoinedExtractData,JoinedExtractData[measure var _last6]*4),1,
IF(SUM('Values'[Values])>SUMX(FILTER(JoinedExtractData,JoinedExtractData[measure var _last6]*0.75),3,0)))))

 

please write them in var and the try to club later

 

Us Switch with true option if needed

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.