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! Request now

Reply
DW868990
Helper IV
Helper IV

Slicer only show max value based on month selection from disconnected date table

Hi, I have a sales amount slicer based on the sales column from a table like below.  On the page, I also have a Month slicer which operates from a disconnected dates table.

 

DW868990_0-1674638051315.png

 

I need the sales amount slicer to only show the range for the month which is selected in the disconnected date table.

 

Any help appreciated.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@DW868990 , Try measure like

 

//Date1 is independent Date table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max))

 

 

or

 

//Date1 is independent Date table
new measure =
var _max = allselected(Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] in _max))

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

2 REPLIES 2
amitchandak
Super User
Super User

@DW868990 , Try measure like

 

//Date1 is independent Date table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max))

 

 

or

 

//Date1 is independent Date table
new measure =
var _max = allselected(Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] in _max))

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 ah yes, thank you, but i need to apply this to a slicer? So the range in the slicer only shows the min and max for the month selected from the disconnected table.

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