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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
cristianml
Post Prodigy
Post Prodigy

Help with measure Var Max with 2 Filters

Hi,

 

I need help with the following formula.  the Var X2  gives an error.  I need 2 filters under Max 

 

VAR x2 = SUMX(FILTER(ALLSELECTED('NWD_Table'),'NWD_Table'[FY & Q] = MAX('NWD_Table'[FY & Q]) & 'NWD_Table'[FY] = MAX('NWD_Table'[FY])-1),'NWD_Table'[NWD])
 
cristianml_0-1644520300313.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@cristianml , Use double &

 

VAR x2 = SUMX(FILTER(ALLSELECTED('NWD_Table'),'NWD_Table'[FY & Q] = MAX('NWD_Table'[FY & Q]) && 'NWD_Table'[FY] = MAX('NWD_Table'[FY])-1),'NWD_Table'[NWD])

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@cristianml , Use double &

 

VAR x2 = SUMX(FILTER(ALLSELECTED('NWD_Table'),'NWD_Table'[FY & Q] = MAX('NWD_Table'[FY & Q]) && 'NWD_Table'[FY] = MAX('NWD_Table'[FY])-1),'NWD_Table'[NWD])

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.

Top Solution Authors