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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
cfahner
Frequent Visitor

SumX Filter with multiple selected slicer values

I currently have it working where if one Week Ending Date is selected the measure calculates without issues

Mechanic Cost Breakdown = IF(HASONEFILTER('Electronic Timesheets'[Name]),[Measure 2],SUMX(filter('Time','Time'[Week Ending date ]=SELECTEDVALUE('Week Ending Dates'[WeekEnding])),[Measure 2]))

 

 What I want to do is have the same measure calculate but have the ability to select multiple week ending dates, I have researched some and attempted to do the following but results in an error

test = CONCATENATEX(VALUES('Week Ending Dates'[WeekEnding]),'Week Ending Dates'[WeekEnding],",")

Mechanic Cost Breakdown = 
IF(HASONEFILTER('Electronic Timesheets'[Name]),[Measure 2],SUMX(filter('Time',[test] IN VALUES('Time'[Week Ending date ])),[Measure 2]))

 

cfahner_0-1696959155097.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@cfahner , Try like

 

Mechanic Cost Breakdown = IF(HASONEFILTER('Electronic Timesheets'[Name]),[Measure 2],SUMX(filter('Time','Time'[Week Ending date ] in values('Week Ending Dates'[WeekEnding])),[Measure 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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@cfahner , Try like

 

Mechanic Cost Breakdown = IF(HASONEFILTER('Electronic Timesheets'[Name]),[Measure 2],SUMX(filter('Time','Time'[Week Ending date ] in values('Week Ending Dates'[WeekEnding])),[Measure 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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.