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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sharmavicky
New Member

Create Cummulative Measue for stack Chart

Hi Everyone, 

 

I am creating a stack chart where i have one measure in intend to create a gannt chart using stack chart.

 

I have the following column 
1. Unique ID is on slicer with single select

2. Step ID (Name of Step)

3. Step Number (sequence of the corresponding step

4. Actual Duration

 

And i am using this measure to create my cummulative 

Cumulative Duration =
var cumulativesum = CALCULATE(
    SUM('fact_table'[Actual_Duration]),
    FILTER(
        ALLSELECTED('fact_table'[Step Number ]),
        'fact_table'[Step Number ] <= MAX('fact_table'[Step Number ])
    )
)
return cumulativesum - fact_table[Actual Average Duration]
 
this some how works correclty but what i want is for given Step Number & Step ID i want to create this cumulative 
 
sharmavicky_1-1734325734394.png

But when i am going step_id 

sharmavicky_2-1734325762203.png

 

So i want to sort by Step Number and i have step ID as well by using expand drill down the order should be there so that my gannt chart will be correct 

 

Any suggtation will help to achive this gannt chart in correct sort order 

Note: I cannot use Gannt Chart here due to certain limitation

@

Thanks in Advance 



 

 

1 ACCEPTED SOLUTION
v-tsaipranay
Community Support
Community Support

Hi @sharmavick,

Thank you for reaching out to the Microsoft Fabric Community Forum.

 

As per your request, you would like to display the Step ID on the axis instead of the Step Number.

Could you please confirm if the implementation meets your requirements, as shown in the attached image?

 

vtsaipranay_0-1734418347426.png

 

 

Additionally, I have included the PBIX file that I created using the provided sample data. Kindly review it and confirm whether it aligns with your expectations.


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

Thank you.

View solution in original post

7 REPLIES 7
renyusen
Regular Visitor

try this:

add a constant value column as the first stack column,  whose label is bind with the step_ID,  then  use the label as the new Y,  disable the former  Y lable ( stemp number)

v-tsaipranay
Community Support
Community Support

Hi @sharmavick,

Thank you for reaching out to the Microsoft Fabric Community Forum.

 

As per your request, you would like to display the Step ID on the axis instead of the Step Number.

Could you please confirm if the implementation meets your requirements, as shown in the attached image?

 

vtsaipranay_0-1734418347426.png

 

 

Additionally, I have included the PBIX file that I created using the provided sample data. Kindly review it and confirm whether it aligns with your expectations.


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

Thank you.

Hi @sharmavicky,

 

I wanted to follow up on our previous suggestions regarding creating a Gantt chart using a stacked chart. We would love to hear back from you to ensure we can assist you further.

If my response has addressed your query, please 'accept it as a solution' and give a ‘Kudos’ so other members can easily find it. Please let us know if there’s anything else we can do to help.

 

Thankyou.

Hi @sharmavicky 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @sharmavicky,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

danextian
Super User
Super User

Hi @sharmavicky 

 

Can you please post a sample data and your expected result from that? You may also post a sanitized copy of your pbix. A link to the file in the cloud will do.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @danextian 

 

Here is the sample data Here Product is slicer with single select, 

I want to create stack chart using Step_ID, Step Number on Y Axis and Duration on x axis in way please check image for the same 

ProductStep_IDStep NumberActual_Duration
1Assembly Step 1124
1Assembly Step 2228
1Quality Check 1331
1Packaging Step 1415
1Delivery Prep518
1Final Inspection612
1Wrapping718
1Sealing89
1Storage Prep919
1Loading1032
1Dispatch Ready1114

 

sharmavicky_0-1734348568397.png

I know this can be acehieved by creating cummlatove measure which i am able in my question you cna see that. Challenge is I want to show Step ID on my axis instead of step number.

 

Hope this helps

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors