The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
help please i want to make a clusterd colum visual with % of yes and no answers my data is like this
Name answer
andrew yes
peter no
withney no
i want to know how many people answert with yes and how many people answert no and i want to show it in a clusterd colum diagram.
hope someone can help me :):)
Solved! Go to Solution.
hi @Anonymous
are you expecting like:
measure =
VAR _count = DISTINCTCOUNT(TableName[Name])
VAR _countall =
CALCULATE(
DISTINCTCOUNT(TableName[Name]),
ALL(TableName[answer])
)
RETURN
DIVIDE(_count, _countall)
Take the answer column in x axis and the name column count in y axis you will get the answer.
If you need the % get total name count with out filters and decide by the name count, and drop it in y axis.
This doesnt work for me if i place the measure in in the Y axis it gives me 100% by both answers i need a measuere like this:
count answer
count answer divide by yes and now
hi @Anonymous
are you expecting like:
measure =
VAR _count = DISTINCTCOUNT(TableName[Name])
VAR _countall =
CALCULATE(
DISTINCTCOUNT(TableName[Name]),
ALL(TableName[answer])
)
RETURN
DIVIDE(_count, _countall)
User | Count |
---|---|
26 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
30 | |
14 | |
12 | |
12 | |
7 |