How to locate the day on which cumulative total is greater or equal to 80%

I’ve attached a pbix file with a sample dataset and several measures created. Also included a table.

My goal is to create a measure which isolates the lag day on which the cumulative % of total reaches 80%.

I included an image with the highlighted row, the result I’m looking for is lag day = 161.

thank you!
Example Data PBIX.pbix (32.6 KB)

Hi @pete.langlois

Create measure

Example Data PBIX.pbix (32.9 KB)

3 Likes

@Rajesh ,

Really elegant solution. I had just started working this as a MINX(TOPN()) pattern, but yours is much cleaner.

:+1:

  • Brian

Thanks @BrianJ

Hi @Rajesh, Thank you for always providing this group with great solutions. :slight_smile: We hope this helped you @pete.langlois

If not, how far did you get and what kind of help you need further?

If yes, kindly mark as solution the answer that solved your query.

Hi @pete.langlois, due to inactivity, a response on this post has been tagged as “Solution”. If you have any concern related to this topic, please create a new thread.

Thank you both!