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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

SUMX(FILTER( ?? filter by using slicer

Hello,

I have a multi select slicer on my report, and I would like to create a measure for by using slicer.

 

I have a [sales plan] and [sales result] table.

Both tables have a [date] and [amount].

 

If 2021/4 and 2021/5 is selected in my slicer, I would like to have a sum of

2021/4/1 to 2021/5/31 Sales Result and

2021/6/1 to 2022/3/31 Sales plan.

 

If only 2021/5 is selected, I would like to I would like to have a sum of

2021/5/1 to 2021/5/31 Sales Result

and 2021/4/1 to 2022/4/30 and 2021/6/1 to 2022/3/31 Sales plan.

 

I was trying to use SUMX(FILTER(

Could someone help me.

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 
There are typos make confusion, better just share a sample pbix, and show your expected output.

Vpazhenmsft_0-1626156133550.png

 

 

Paul Zheng _ Community Support Team

MFelix
Super User
Super User

Hi @Anonymous ,

 

This can be done using the SUMX and a disconnected table for your slicer however without data and how your model is setup is difficutl to pinpoint the calculation especially since you want to have the years ahead.

 

Can you please share a mockup data or sample of your PBIX file and expected result. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors