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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
Super User
Super User

@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
Super User
Super User

@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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors