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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
V-pazhen-msft
Community Support
Community Support

@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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.