Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
how to create this chart by count "Custom Column" and show it as 2 line (Count itself and show as percentage)
i have date dimention too it's name as "Month&Year"
Solved! Go to Solution.
Hi @minerallife ,
Based on your description,
you might consider using the following code to create two Measures.
My Sample:
Sub portion =
VAR Total = COUNT('Table'[Custom Column])
RETURN
DIVIDE(COUNTX(FILTER('Table','Table'[Custom Column] = "SUB"),[Custom Column]), Total)
OD portion =
VAR Total = COUNT('Table'[Custom Column])
RETURN
DIVIDE(COUNTX(FILTER('Table','Table'[Custom Column] = "OD"),[Custom Column]), Total)
Result is as below.
Is this the result you expect?
For further details, please find attachment.
If I've misunderstood you, please provide detailed sample data and the results you are hoping for. We can better understand the problem and help you. Show it as a screenshot or excel. Please remove any sensitive data in advance.
Best Regards,
Yulia Yan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @minerallife ,
Based on your description,
you might consider using the following code to create two Measures.
My Sample:
Sub portion =
VAR Total = COUNT('Table'[Custom Column])
RETURN
DIVIDE(COUNTX(FILTER('Table','Table'[Custom Column] = "SUB"),[Custom Column]), Total)
OD portion =
VAR Total = COUNT('Table'[Custom Column])
RETURN
DIVIDE(COUNTX(FILTER('Table','Table'[Custom Column] = "OD"),[Custom Column]), Total)
Result is as below.
Is this the result you expect?
For further details, please find attachment.
If I've misunderstood you, please provide detailed sample data and the results you are hoping for. We can better understand the problem and help you. Show it as a screenshot or excel. Please remove any sensitive data in advance.
Best Regards,
Yulia Yan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@minerallife , Percent of total ?
Two measures
M1 = count(Table[Custom])
M1 % = divide(count(Table[Custom]) , calculate(count(Table[Custom]) , allselected()) )
User | Count |
---|---|
134 | |
74 | |
72 | |
58 | |
54 |
User | Count |
---|---|
194 | |
95 | |
65 | |
62 | |
53 |