Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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:
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
Solved! Go to Solution.
@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.
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
@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.
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
User | Count |
---|---|
64 | |
59 | |
47 | |
33 | |
32 |
User | Count |
---|---|
84 | |
75 | |
56 | |
50 | |
44 |