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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Bart-ek
Helper I
Helper I

cumulative values without any time frame with separated lines for legend

I want to accumulate values over time without any time frame. I have visual created with single line but I can't make separate values for separate groups to be shown on the same chart (without creating separate measures per group/person as I'll never know exact number of people):

current view.jpg

result I want to achieve something like this:

required result.jpg

any idea how to solve it?

 

current value for cummulation:

dax.jpg

 

tables (separate for calendar)

table for forum.jpg

 

2 ACCEPTED SOLUTIONS

Hi @Bart-ek ,

 

try this

 

cumulation of results = 
VAR MaxDate = MAX('CALENDAR'[Date])
RETURN
  CALCULATE(
    SUM(test[result in numbers]),
    FILTER(
      ALL(CALENDAR),
      'CALENDAR'[Date] <= MaxDate
    )
  )

 

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

actually found a solution myself too after I've placed this thread 😄 ... 

 

all('CALENDAR')
instead of 
all('test')
 
that brings this result:
good result.jpg

View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @Bart-ek,

Place the name column on the legend and change your all part of the measure for the date column instead of the all test table.

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



actually found a solution myself too after I've placed this thread 😄 ... 

 

all('CALENDAR')
instead of 
all('test')
 
that brings this result:
good result.jpg

Hi @Bart-ek ,

 

Please mark a post as solution, this will help others.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Hi @Bart-ek ,

 

try this

 

cumulation of results = 
VAR MaxDate = MAX('CALENDAR'[Date])
RETURN
  CALCULATE(
    SUM(test[result in numbers]),
    FILTER(
      ALL(CALENDAR),
      'CALENDAR'[Date] <= MaxDate
    )
  )

 

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.