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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
kumsha1
Post Patron
Post Patron

Multiple column references for FILTER

Hi,

VALUES can accept single column reference in FILTER... So, how can i rewrite below DAX to pass multiple column references for FILTER?, to pass another column as highlighted in RED. TIA for your help. Cheers

 

SUMX(FILTER(VALUES(SHIPPING[DISCHARGE_COMMENCE],SHIPPING[SHIPMENT_NO]),[DATEDIFF]>=0),[TA_WEIGHTOMETER])
5 REPLIES 5
Anonymous
Not applicable

Hi @kumsha1 ,

 

I don't quite understand the formula. Can you show more details?

 

Best Regards,

Jay

amitchandak
Super User
Super User

@kumsha1 , Not very clear what you want from the formula.

Try like SUMX(FILTER(Summarize(SHIPPING[DISCHARGE_COMMENCE],SHIPPING[SHIPMENT_NO],"_1",[DATEDIFF],"_2",[TA_WEIGHTOMETER]),[_1]>0),[_2])

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

@amitchandak , i have below error

kumsha1_0-1604907356025.png

Requirement is to filter the values by multiple columns to get the correct aggregation.

 

niteshtrehan89
Helper III
Helper III

function=

var x= VALUES(SHIPPING[DISCHARGE_COMMENCE]

var y= VALUES(SHIPPING[SHIPMENT_NO])

return

SUMX(FILTER(x,y,[DATEDIFF]>=0),[TA_WEIGHTOMETER])

Hi @niteshtrehan89 , thanks for your quick response.

 

I tried creating variables as mentioned but the DATEDIFF is not being accepted with error 'unexpected parameter'.

 

kumsha1_0-1604902785647.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors