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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
quickbi
Helper II
Helper II

Percentage from first row

Hi, 

I have a table like this, with date in rows, index in columns and count(customer_id) in values.
the result is this one:

quickbi_0-1721462874931.png

 


But I want to know the percentage of each index versus the first one. For example in february 2023 we got in second index 8022 users versus 36313 and the result should be 22,1%
I have no idea how to do that
Thanks

 

 

1 ACCEPTED SOLUTION
AllisonKennedy
Community Champion
Community Champion

@quickbi  if you're wanting index 1 as your baseline to always compare to, make a measure that always shows index 1, no matter what index is in filter context:

 

[Customer Count - Index 1] = 
CALCULATE ( Count(Table[Customer_id]) , Table[Index] = 1)

 

Then you can create a measure to calculate the %:

 

[Customer Count - % of Index 1] = 
DIVIDE( Count(Table[Customer_id]), [Customer Count - Index 1] )

 

and format that as a percent.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

2 REPLIES 2
AllisonKennedy
Community Champion
Community Champion

@quickbi  if you're wanting index 1 as your baseline to always compare to, make a measure that always shows index 1, no matter what index is in filter context:

 

[Customer Count - Index 1] = 
CALCULATE ( Count(Table[Customer_id]) , Table[Index] = 1)

 

Then you can create a measure to calculate the %:

 

[Customer Count - % of Index 1] = 
DIVIDE( Count(Table[Customer_id]), [Customer Count - Index 1] )

 

and format that as a percent.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Thank you @AllisonKennedy  it works!!!!

 

 

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.