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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Relative Date Filtering - Cumulative Total

Hi,

 

I'm trying to build a waterfall chart that will show increases in customer registrations over the last 10 weeks, with the total figure at the end displaying the total registrations of all time. 

 

 

Ideally i'd like the starting figure of my ten week period to be the count of registrations before this period, but when i add a relative date filter to show only the last 10 calendar weeks the graph starts at 0, and the total only shows the amount of registrations within that time period.

Customer Regi.PNG

Is there any way to achieve this?

 

 

 

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Is this problem sloved? 

If it is sloved, could you kindly accept it as a solution to close this case?

If not, please let me know.

 

Best Regards

Maggie

Anonymous
Not applicable

Hi Maggie, 

I gave it a shot, but it didn't seem to solve the problem. Just for clarification, are the references to sheet1 e.g

 

flag1 = IF(MAX(Sheet1[firstday])>=[Min]&&MAX(Sheet1[firstday])<=[Max],1,0)

referring to the date table i created or my original data source (where i'm pulling the count of registrations from) 

v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

1.Create a new table which is not connected to any other table

calendar = CALENDARAUTO()

Add [date] In the slicer

 

2. create columns in your table

weeknum = WEEKNUM([date],1)

year = YEAR([date])

firstday = CALCULATE(MIN(Sheet1[date]),ALLEXCEPT(Sheet1,Sheet1[year],Sheet1[weeknum]))

Create measures

Min = MIN('calendar'[Date])

Max = MAX('calendar'[Date])

flag1 = IF(MAX(Sheet1[firstday])>=[Min]&&MAX(Sheet1[firstday])<=[Max],1,0)

discount = DISTINCTCOUNT(Sheet1[value])

clc = CALCULATE([discount],FILTER(ALL(Sheet1),Sheet1[date]<=MAX(Sheet1[date])))

clc-1 = CALCULATE([clc],FILTER(ALL(Sheet1),[firstday]=MAX([firstday])-7))

diff = [clc]-[clc-1]

final = IF([flag1]=1&&MAX(Sheet1[firstday])>[Min],[diff],IF([flag1]=1&&MAX(Sheet1[firstday])=[Min],[clc]))

1.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.