Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Have some survey data that I need help figuring out for each unique respondent, the number of respondents that select Y once, selected Y twice, selcted Y 3 times and so on. My data is setup as follow.
So in the above example, there would be a total of 2 unique respodents that answered Y to 3 questions, 1 unique respodent that answered Y to 2 questions, and 2 unique respodents that selected Y to 1 question.
Need to be able to graph the results in a bar chat by the frequency of Y answers for each unqiue client id.
Below is the same data setup in a color scheme by Client ID to easier viewing.
Thanks in advance
Hi,
You may download my PBI file from here.
Hope this helps.
Hi, ,
first create a frequency table like this:
Frequencies = GENERATESERIES(0,10,1)
and rename the column [Value] to [Frequency]. This table should have no relationship to any other table.
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Getting the following error when trying to create the second measure VAR_CountOfYesPerClient
"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value"
Here is the full measure with the error
Thanks for your help!
It seems like you are pulling in two different tables in your measure, I have no way of knowing how they are related.
It would be helpful if you could share your pbix, or if that is not possible, create an example file reproducing your model.
Hi @SHADOWFAX ,
Please try like:
CountOfYesPerClient =
ADDCOLUMNS (
VALUES ( 'SDOH Survey Data'[ID] ),
"count", CALCULATE ( COUNTROWS ( 'SDOH Survey Data' ), 'SDOH Survey Data'[Answer] = "Y" )
)
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
sorry about the formatting, the forum is acting up all weird
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |