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
Anonymous
Not applicable

Cumulative line chart based on text value

Hi.

 

How do I make a cumulative line chart of this? 

lavmads_1-1667314536776.png

This is the same table - I would like a column next going 25/07 = 2, 06/09 = 3 and so on. 

lavmads_2-1667314552271.png

Best regards,

Lisa 

 

 

 

 

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

Hi @Anonymous ,

 

This is my test table:

vyadongfmsft_0-1667460995086.png

 

Please try following measure:

Measure = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])))

 

I think this is the result you want:

vyadongfmsft_0-1667983457609.png

 

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

This is my test table:

vyadongfmsft_0-1667460995086.png

 

Please try following measure:

Measure = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])))

 

I think this is the result you want:

vyadongfmsft_0-1667983457609.png

 

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Shaurya
Memorable Member
Memorable Member

Hi @Anonymous,

 

You can the below the DAX formula to create a cumulative totals column:

 

Cumulative = SUMX('Table',IF('Table'[Date]<=EARLIER('Table'[Date]),'Table'[Antal of Intern Status],0))

 

Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Previous Forecasts

Anonymous
Not applicable

"Antal of Intern status" is not an actual column is just something I converted for a visual table. So what do I do?

 

And I have a calender table, is that the one that I should use as "Table" in your eqaution? 

 

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.