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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.