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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
praveenpasila
Advocate IV
Advocate IV

Relevant values for Disconnected tables

Hi All,

 

We have created disconnected tables for start and end dates. we are using them to display data between the start and end date ranges when they are selected in slicer.

 

This works fine using below formula

 

Filter Dates =
VAR StartDate = SELECTEDVALUE('Disc Start Date'[Start Date])
VAR EndDate = SELECTEDVALUE('Disc End Date'[End Date])
VAR SummaryDate = MAX('Table1'[Calendar Date])

 

RETURN
IF ( SummaryDate >= StartDate && SummaryDate <= EndDate, 1, BLANK())

 

I want to make the start and end dates show relavent value in slicer based on any other slicer selection

Is there a way to do that please suggest.

 

Thanks in advance

 

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@praveenpasila , do you need something like

 

Date Range Using 2 slicer =
var _max = minx(allselected(Date1), Date1[Date])
var _min = maxx(allselected(Date2), Date2[Date])
return
calculate(countrows(Table), Filter(Table,Table[Date] <=_max && Table[Date] >=_min) )

 

 

if needed refer similar example

Select data between months - https://youtu.be/nEt7dT3Tfv4

Hi @amitchandak ,

 

Tried the measure but it is not working.

may be I confused the forum just to make sure we have more clarification adding screen shots below please find below

 

praveenpasila_0-1675938675660.png

Selecting the date slicers and other slicer such as "Code" the data is displaying fine in all the charts.

 

But when a specific "Code" is selected the date slicers are not showing relavent values its showing all dates from the respective disconnected tables 

 

praveenpasila_3-1675938890943.png

 

praveenpasila_2-1675938851145.png

Can we make them show only relavent values and not all dates from the Disc tables

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.