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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
Community Champion
Community Champion

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.