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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
jvilchez
New Member

Need Help EARLIER

Greetings,
I have the following query, I have a table that contains 7500 registers approx; And what I want to do is a measure that helps me show the percentage of user participation per year.

Likewise, every year the users increase; Example in 2014 there were 89 users, in 2015 1500 users and by 2016 there were 2215 users.

But the participation of the mentioned years is the following 2014: 32; 2015: 152; And 2016: 350.

The percentage of participation would be for 2014 = (32/89), 2015 = (152 / (1500 + 89)) and 2016 = (350 / (2215 + 1500 + 89)).
Use the function earlier, and get it counted and users increase by year:

CALCULATE(COUNT('vmc_subastas_consultas DIM_USUARIO'[ID_USUARIO]);FILTER('vmc_subastas_consultas DIM_USUARIO';'vmc_subastas_consultas DIM_USUARIO'[FECHA_REGISTRO].[Año]<=EARLIER('vmc_subastas_consultas DIM_USUARIO'[FECHA_REGISTRO].[Año]));FILTER('vmc_subastas_consultas DIM_USUARIO';'vmc_subastas_consultas DIM_USUARIO'[ESTADO]="ACTIVO");FILTER('vmc_subastas_consultas DIM_USUARIO';'vmc_subastas_consultas DIM_USUARIO'[DEMO]=0);FILTER('vmc_subastas_consultas DIM_USUARIO';'vmc_subastas_consultas DIM_USUARIO'[COD_CLI]=0))

And this is repeated in all my records; And when I show it I get the following:

Captura1.PNG

 

 


Does not give me the information I want and adds the records with the values ​​of the years, and can only give me the result when I change the option to averagCaptura2.PNG

 

 

 

 


And generating my measure only gives me other values ​​that are not mentioned in the above lines. Some help?
Thanks..... 
1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@jvilchez

 

In this scenario, to calculate the percentage of participation every year, you just need to use the current year participation divided by cumulative users. Please refer to measure below:

 

Participation Rate = SUM([Participation])/CALCULATE(SUM(Table1[Users]),FILTER(ALL(Table1[Year]),Table1[Year]<=MAX(Table1[Year])))

 

5555.PNG

 

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@jvilchez

 

In this scenario, to calculate the percentage of participation every year, you just need to use the current year participation divided by cumulative users. Please refer to measure below:

 

Participation Rate = SUM([Participation])/CALCULATE(SUM(Table1[Users]),FILTER(ALL(Table1[Year]),Table1[Year]<=MAX(Table1[Year])))

 

5555.PNG

 

Regards,

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.