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

DAX running total to limit data till selected date in the slicer

I am trying to control / limit the running total till the month i have selected on the Slicer.

For example : if i select in slicer FY month = 01-10-2018 the graph should show value till that particular month only.

The given data has value for the entire FY year.

My date is linked to a Date table too. So u can suggest considering this.

I tried using selectedValue([FY Month]) but i guess its move along the axis.

I am open for suggestion with "Edit with interaction" or "without edit interaction" between Slicer and the chart.

FY MonthCost Forecast
01-09-20171
01-10-20172
01-11-20174
01-12-20177
01-01-20189
01-02-201811
01-03-201813
01-04-201815
01-05-201817
01-06-201819
01-07-201821
01-08-201823
01-09-20181
01-10-20182.5
01-11-20183.3
01-12-20185.5
01-01-20197.3
01-02-201910
01-03-201912.1
01-04-201915
01-05-201916
01-06-201917.3
01-07-201920.2
01-08-201922

 

Thank You

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Sabarikumar7579,

 

1. Create a calculated table.

 

Slicer = DISTINCT(Table1[FY Month])

2. Create a measure as below.

 

Measure = var em = EOMONTH(SELECTEDVALUE(Slicer[FY Month]),0)
return 
IF(MAX(Table1[FY Month])<= em,1,0)

3. Create a table visual and filte it by the measure like this.

 

Capture.PNG

 

For more details, please check the pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Sabarikumar7579,

 

1. Create a calculated table.

 

Slicer = DISTINCT(Table1[FY Month])

2. Create a measure as below.

 

Measure = var em = EOMONTH(SELECTEDVALUE(Slicer[FY Month]),0)
return 
IF(MAX(Table1[FY Month])<= em,1,0)

3. Create a table visual and filte it by the measure like this.

 

Capture.PNG

 

For more details, please check the pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
MFelix
Super User
Super User

Hi @Sabarikumar7579,

 

Why don't you use a slicer on your date and select the option of before that will give the information until that specific date.

 

Regards,

MFelix


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
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.