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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
juliamacg_
Frequent Visitor

Help building an incremental counting logic for a funnel visual

Hello, everyone!

 

I'm trying to reach a formula that will sum up the number of approvals a paper has had until it reached its current step of analysis. The logic is rather simple: if, for example, a paper is in step 7, it has had 6 approvals before it (that is, it got approved in all 6 previous steps until it got where it is). 

 

juliamacg__0-1677763486039.png

 

However I got stuck trying to make the formula return not the number of previous approvals, but an incremental counting of all approvals the papers have had. My goal is to plot a funnel visual that looks like this (in the example of the 3 papers I shared above):

 

juliamacg__1-1677763655062.png

 

What functions would you use for such a formula? No problem if it needs 2 or more 🙂

Thank you very much in advance!

2 REPLIES 2
juliamacg_
Frequent Visitor

Thanks for the clarifying answer! I'm trying to add a custom column that references CURRENT STEP but CURRENT STEP is a calculated column in itself and therefore I don't know how to reference it in Power Query. Is there any way to do that?

HotChilli
Super User
Super User

I think you have 2 options:

1. Work out a formula for a measure which calculates the implied steps from the above data.  Might involve a hardcoded list of integers and a calculation to count the number of steps which are equal to or greater than each integer 

or

2. Generate additional lines (which are implied in the data) for each maximum step, making the visual easier to think about.  If this is done in Power Query, just add a custom column {1..[current step as an integer]} then Expand that column 'To Rows'.  The column [current step as an integer] will have to be numeric and that can be calculated in a reasonably straightforward manner.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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