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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

DAX cumulative curve of number milestones with a progress value calculated directly

Hello to everyone ! 


edit the link to the file : https://drive.google.com/file/d/1vE7Oj-dpwqc8KkmtsGFljeFUdUvZBZ1k/view?usp=drive_link

My issue is easy and complexe at the same time. 

I want count the progress of my project from a table where i register date at each update of my project. 
My table look like this 

IDgroupSource updateDate
1group1X1XX/XX/XX
1group1X2XX/XX/XX
2group1X1XX/XX/XX
2group1X2XX/XX/XX
3group2X1XX/XX/XX
3group2X2XX/XX/XX
4group2X1XX/XX/XX
4group2X2XX/XX/XX
5group2X1XX/XX/XX
5group2X2XX/XX/XX
6group3X1XX/XX/XX
6group3X2XX/XX/XX
7group3X1XX/XX/XX
7group3X2XX/XX/XX
8group3X1XX/XX/XX
8group3X2XX/XX/XX
9group3X1XX/XX/XX
9group3X2XX/XX/XX
10group4X1XX/XX/XX
10group4X2XX/XX/XX
11group4X1XX/XX/XX
11group4X2XX/XX/XX
12group4X1XX/XX/XX
12group4X2XX/XX/XX
13group4X1XX/XX/XX
13group4X2XX/XX/XX

 

The progress i want to calculate by group of milestones and i want that each group has the same weight ( modulo a factor) 

For example the group 1 has 2 milestones ==> thus for each review i have 2 milestones 

and for the group 2 i have 3 milestones etc etc

 

Each group has one factor of weight one the table below

groupfactor
group11
group22
group31
group43

 

because there is not hte same number of milestones by group + there is a diffrent factor ==. the progress calculated for each group is not the same. 

 

To do this thing in power query it's auite easy 

1- I merge the table of factor on the main table 

2- i merge the main table on the main table (on the key which is the group&reviewnumber)  ==> allow me to agregate the table and calculate the number of milestones by group by review

3- i add a column where i multiply the factor divide by the number of milestone *5 (5 is the weight for the milestone at the end) 

==> with that i have a progress for each row that i can easily show on a cumulative curve or an histogram by group or by ID. 

 

The issue is that the second merge (main table on the main table) + aggregation to count the number of key take a loooooot of time.

I thing there is a way to do it with DAX but i am struggle. 

For exemple i tried to create a mesure like that : 

 

 

curve_cumul = 
var nbrtotal  =calculate(count('Project curve (2)'[Development curve - group]),ALL('Calendar'))
var factor =  calculate(Max('Project curve (2)'[Development curve - factor]),ALL('Calendar'))
var nbr  = calculate(count('Project curve (2)'[Development curve - group]),'Calendar'[Date]<=MAX('Calendar'[Date]))
return  nbr/nbrtotal*factor*5

 

 

if i show this on a visual it's working when i put in legend the group ==> 

Florian1414_0-1717060571544.png

for each group i have a cumulative curve that show the progess (modulo the factor that i had)

However when i don't use the legend, i would think that i had the cumulative curve of each group but in fact no ==> 

Florian1414_1-1717060708813.png

 

I suppose that it take the maximum so it's not a sum of each group that normally bring me to 300 but just the max of the table that go to 15 which is factor max = 3 * 5 (nbr =nbrtotal in that case cause it's not filtering on group as the legend do)

++ i would like to have a curve for each review to compare them. 

 

I fell that i do it wrong but i am not so far from the answer but i am struggle soooo 
Thank you veryyyy much for your help by advance ! 

 

Florian

 

4 REPLIES 4
Anonymous
Not applicable

Hi Ibendlin, 
Thank you for your reply.

I updated the post and add a link to a pbi file.

Data are not screenshot except curves so normally everything is usable now. 

 

Thanks and have agood day ! 

link asks for access. Please verify.

Anonymous
Not applicable

it's change. Normally now you have access ! 

lbendlin
Super User
Super User

your sample data is not usable. Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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