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
Anonymous
Not applicable

Cummulative count for funnel visual

Hello community!

 

I´m having a problem with the funnel visual because I need to make a cumulative count by stage for it to look properly. I´ve used a similar formula to the one provided in this post

 

The problem that I´m having is that when I compare the funnel visual to a matrix grouped by stage the results are different and I can´t find the reason why

 

The table that I´m working with is ALLClients_Export which basically has one user per row and it´s current stage on the flow("ESTADO","StageId"). 

The other table is Funnel_Lookup where each stage is defined and has an ID assigned.

Funnel_Lookup    ALLClients_Export

StageID           1:*          StageID

 

The result that I´m looking for is basically the following:

Annotation 2021-01-25 143434.png

but with the correct values and percentages shown on the following matrix ("En proceso" is included in "Todas las sesiones":

Annotation 2021-01-25 144153.png

so it should look like:

StageCount
Todas las sesiones1279
Validacion telefono1255
DNI Frontal1203
DNI Dorso1203
......
Aprobado1081
Rechazado122

 

I really can´t figure out how to solve this, the formula I´m currently using is the following:

 

CuentaSKUporStatus =
CALCULATE (
    COUNTA ( ALLClients_Export[ESTADO] ),
    FILTER (
        ALL ( Funnel_Lookup ),
        Funnel_Lookup[Stageid] >= MIN ( ALLClients_Export[Stageid] )
    )
)

 

Here´s the link for the .pbix

Thanks!

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , Can you please try like one of the two ways and check

 

CuentaSKUporStatus =
CALCULATE (
COUNTA ( ALLClients_Export[ESTADO] ),
FILTER (
ALL ( ALLClients_Export ),
ALLClients_Export[Stageid] >= MIN ( ALLClients_Export[Stageid] )
)
)

 

or


CuentaSKUporStatus =
CALCULATE (
COUNTA ( ALLClients_Export[ESTADO] ),
FILTER (
ALL ( Funnel_Lookup ),
Funnel_Lookup[Stageid] >= MIN ( Funnel_Lookup[Stageid] )
)
)

View solution in original post

Hi @Anonymous 

You add ESTADO into the column in this matrix.

Firstly, you add Stage in Funnel_Lookup(you related stageid in ALLClients_Export to stageid in Funnel_Lookup) into the column in this matrix. 

The Value 'Aprobados' in Stage in Funnel_Lookup will relate to stageid 10 in ALLClients_Export.

We can see if we filter stageid =10 in this table, ESTADO will contains three values.

1.png

Result:

Aprobado (value in Stage in Funnel_Lookup) = Aprobado+Aprobado+Error Smarter +Aprobado-Sin PDF (value in ESTADO in ALLClients_Export) = 1056+22+3=1081.

It means the result you got is correct.

If you want to show 1081 in Aprobado, you can add Stage into matrix column.

 

Best Regards,

Rico Zhou

 

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Can you please try like one of the two ways and check

 

CuentaSKUporStatus =
CALCULATE (
COUNTA ( ALLClients_Export[ESTADO] ),
FILTER (
ALL ( ALLClients_Export ),
ALLClients_Export[Stageid] >= MIN ( ALLClients_Export[Stageid] )
)
)

 

or


CuentaSKUporStatus =
CALCULATE (
COUNTA ( ALLClients_Export[ESTADO] ),
FILTER (
ALL ( Funnel_Lookup ),
Funnel_Lookup[Stageid] >= MIN ( Funnel_Lookup[Stageid] )
)
)

Anonymous
Not applicable

The first option got really close and this is the result:

Annotation 2021-01-26 182626.png

Every stage count is ok except for "Aprobados" which should be showing 1081. I don´t understand why this is the case.

The other solution seems accurate but I can´t filter it by month which would make the funnel pretty much useless.

 

Thank you very much for your help!

 

Hi @Anonymous 

You add ESTADO into the column in this matrix.

Firstly, you add Stage in Funnel_Lookup(you related stageid in ALLClients_Export to stageid in Funnel_Lookup) into the column in this matrix. 

The Value 'Aprobados' in Stage in Funnel_Lookup will relate to stageid 10 in ALLClients_Export.

We can see if we filter stageid =10 in this table, ESTADO will contains three values.

1.png

Result:

Aprobado (value in Stage in Funnel_Lookup) = Aprobado+Aprobado+Error Smarter +Aprobado-Sin PDF (value in ESTADO in ALLClients_Export) = 1056+22+3=1081.

It means the result you got is correct.

If you want to show 1081 in Aprobado, you can add Stage into matrix column.

 

Best Regards,

Rico Zhou

 

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

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.