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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Syndicate_Admin
Administrator
Administrator

Create Cumulative Measure from a Created Measure

Hello

I am stuck trying to create a MEASURE that tells me the ACCUMULADO, of percentages (measure created) in relation to maintenance that will be done to some wind turbines on planned dates, however, at the time of creating the measure, this results in 100% in each row, which is incorrect. In the following image, I show the syntaxys that I put to the extent that it is NOT working for me:

%ACC TURBINES PLANNED = CALCULATE([% OF TURBINES PLANNED], FILTER(ALLEXCEPT('PREVENTIVES','PREVENTIVES'[Parque eolico ]), 'PREVENTIVES'[Fecha]<= MAX('PREVENTIVES'[Fecha])))
SOTORRES89_0-1674455010373.jpeg

What I look for the accumulated to give me as a result is the following:

SOTORRES89_1-1674455134205.png

I hope you can apyarme, THANK YOU!

1 REPLY 1
amitchandak
Super User
Super User

@Syndicate_Admin , refer how to use power bi window function for that

Power BI Window function- Pareto Analysis, 80% of sales, Order by on Measure: https://www.youtube.com/watch?v=UVxiLc_AzSs

 

 

or

 

Cumm Sales = Divide( CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date]))),CALCULATE(SUM(Sales[Sales Amount]), all())

 

Cumm Sales = Divide( CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date]))),CALCULATE(SUM(Sales[Sales Amount]), allselected())

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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