cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Anonymous
Not applicable

## Count Rows and then sum them on a timeline

Hello guys,

First of all, I can't create any index coloumns because its a live connection and Im not the Admin.

my Problem: I want to add the sum of each day to the next day. I have the date - and for each date are a certain amount of rows, these rows (numbers of customers) I want to visual.

So my visual looks right now like this:

but this is the goal:

I do not have any index. So I did the "countrows" function. So I have for each date a certain amount of rows. This rows I want so sum up and add them to the following day, how can I do this with dax?

Thanks 🙂

1 ACCEPTED SOLUTION
Super User

@Anonymous , hope you have date in date or fact tables

A measure like

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

or

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(Sales),Sales[Sales Date] <=max(Sales[Sales Date])))

Super User

@Anonymous , hope you have date in date or fact tables

A measure like

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

or

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(Sales),Sales[Sales Date] <=max(Sales[Sales Date])))

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

#### Power BI Monthly Update - July 2024

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

#### Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors