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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kurtle
Helper II
Helper II

Running Cumulative Percent

Hi team, 

 

I am trying to get a running percent using a meaure here. What I would like to do is get a cumulative percent of Gross Gath Gas when sorted by GOR. Both GOR and Gross Gath Gas are measures. Any ideas? 


Thank you in advance!

 

Annotation 2020-03-03 135036.jpg

 

9 REPLIES 9
v-easonf-msft
Community Support
Community Support

Hi  , @Kurtle 

Sorry for that I am not sure what you want.
Isn't 6.25 your result?Or you want to show it as a percentage?

 

If it is the former, I hope you can show the results you want .It will be better to understand your problem.

 

If it is the latter, you can use the percentage format button directly for measure as below:

 

41.png

 

Best Regards,
Community Support Team _ Eason

@v-easonf-msft 

Sorry for the poor explanation... I would like to have a cumulitive percentage of the Gas when the table is sorted in descending order by GOR. See the picture below. Normally I would not have a problem doing this with a date but the GOR column is a Measure and all rows are from the same week. So I am unsure what to use as a index column to follow something like such as thisAnnotation 2020-03-04 070832.jpg

Try measures like this

cumm total =Calculate(Sum(Table[GOR]),filter(all(Table),table[UWI]<=max(table[UWI])))
GT =Calculate(Sum(Table[GOR]),all(Table))

Cumm % =divide([cumm],[GT])

 

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak I am unsure how to do this since the GOR colum is a measure so it will not allow me to sum it

cumm total =Calculate(Sum(Table[GOR]),filter(all(Table),table[UWI]<=max(table[UWI])))
GT =Calculate(Sum(Table[GOR]),all(Table))

 

cumm total =Calculate((Table[GOR]),filter(all(Table),table[UWI]<=max(table[UWI])))
GT =Calculate((Table[GOR]),all(Table))

 

Or share the formula for GOR

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 
The formula for GOR is:

GOR = IFERROR(([Gross Gath Gas E3M3/D]*1000)/[Gross Gath Oil M3/D],BLANK())
 
Both 
Gross Gath Gas E3M3/D and Gross Gath Oil M3/D are measures with the formulas
Gross Gath Gas E3M3/D = Sum(Gross Gath Gas E3M3)/NumDays
Gross Gath Oil M3 =  Sum(Gross Gath Oil M3)/NumDays

I doubt on GT , but cumm should work


cumm total =Calculate(Sum(Table[GOR]),filter(all(Table),table[UWI]<=max(table[UWI])))
GT = sumx(summarize(all(Table),Table[table[UWI]],"_gor",[GOR]),[_gor])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I get the following error message when trying thatAnnotation 2020-03-04 082211.jpg

amitchandak
Super User
Super User

You can use quick measure, there you have option for running total use that.

 

For GT use

GT =Calculate(Sum(Table[GOR]),all(Table))

 

Divide 2.

 

Appreciate your Kudos.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.