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
Nilsoo
Frequent Visitor

How to use values that are filtered with a Date Filter

Hi,
I have the following problem I have a data set containing Sales values of a specific date (my short table below should clarify the topic). I would like to use a time range filter that says how the total sales of the beginng of a period and at the end of a period is.
If I adjust the time range and set it to 2.1 - 4.1, the value of the date 1.1 is filtered out so my total sales at 2.1 is 5 )instead of 25)and 4.1 is 45 (instead of 65). Anyone an idea how to solve this? 

 

Date      Sales

1.1         20

2.1          5

3.1         25

4.1          15

5.1         10

1 REPLY 1
Anonymous
Not applicable

Hi @Nilsoo,

 

So, you want to get the running total based on your choose data range,right?


If this is a case, you can try to use below measure to calculate the running total:

 

Selected Running Total = 
var currDate=MAX('Table'[Date])
Return
SUMX(FILTER(ALLSELECTED('Table'),'Table'[Date]<=currDate),[Value])

 

 

Regards,

Xiaxin Sheng

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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