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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ABmagic
Frequent Visitor

% from previous step

Hello, I'm looking for a way to calculate % from previous step. My table has data for each week. Here's an example of how it is structured for any given week:


Capture.PNG

 

 

 

 

 

 

 

 

 

I'm looking for some DAX formulas that can help me calculate the yellow highlighted cells.

 

I've looked at some other postings, but had no luck so far.

 

 

Thanks!

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @ABmagic,

 

Try out these formulas please.

% of max =
IF (
    [Index] = 0,
    [Visits] / [Visits],
    [Visits]
        / CALCULATE ( SUM ( Table1[Visits] ), FILTER ( Table1, Table1[Index] = 0 ) )
)
% of preious step =
VAR current_index = [Index]
VAR pre =
    CALCULATE (
        SUM ( Table1[% of max] ),
        FILTER ( 'Table1', 'Table1'[Index] = current_index - 1 )
    )
RETURN
    IF ( ISBLANK ( pre ), BLANK (), [% of max] / pre )

from

 

Best Regards,

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

With my initial stab at it % from previous, I had some trouble. I was able to get "% of max" to work using a different method:

 

Measures:

 

Step Value = CALCULATE(SUM('Conversion Funnel'[Visits]))

Sum of All Visits =
CALCULATE(
SUM('Conversion Funnel'[Visits]),
'Conversion Funnel'[Steps] IN { "All Visits" }
)

% of All Visits = Divide([Step Value],[Sum of All Visits])

Hi @ABmagic,

 

What's the trouble exactly?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.