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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

In Line Chart persentage of category data

Hi There,

 

I want to show my data in line chart as persentage of the category. I have handled users' persentage data with "show value as" > "Persentage of Column Total" in this matris visulation.

 

firatseker_0-1600091417324.png

In this image you can see, I have users' distict count, survey name and answertext. I want to show this persentage of distinct count user data by SurveyName in answertext lines. So I need line chart like this:

 

Capture.PNG

8 REPLIES 8
Greg_Deckler
Super User
Super User

@Anonymous You can't use Show value as | Percent of Grand Total?

Greg_Deckler_0-1600092322444.png

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler It is not usefull for me. I need data like the matrix table.

 

I want to show answertext's userid's distict count per surveyName. So total survey name persentage count must be 100% per every survey name as I send the last graphic.

 

Best,

@Anonymous OK, not sure so please provide sample source data and expected output from that source data. Need this as text so I can copy and paste into a mockup. Thanks.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler 

AnswerText Table:

firatseker_0-1600093949809.png

ResponseTable:

firatseker_2-1600094038030.png

 

 

Relation:

firatseker_1-1600094012136.png

 

I need a line chart which must show percent of distictcount userID, comlumn is SurveyName, Rows are AnswerTexts

 

So I need line chart like this for example:

firatseker_3-1600094282411.png

 

@Anonymous As text please, I don't want to have to type all that data in to mock this up. Thanks.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler ouw, I'm sorry you are rigtht.

 

You can find data below:

 

Answers Table:

 

ResponseIDQuestionIDQuestionTextAnswerIDAnswerText
XYZ1Q1qtext1q1a1q1a1text
XYZ1Q2qtext2q2a1q2a1text
XYZ1Q3qtext3q3a1q3a2text
XYZ2Q1qtext1q1a2q1a2text
XYZ2Q3qtext3q3a1q3a1text
XYZ3Q1qtext1q1a1q1a1text
XYZ3Q2qtext2q2a2q2a2text
XYZ3Q3qtext3q3a2q3a2text
XYZ4Q1qtext1q1a1q1a1text
XYZ4Q2qtext2q2a1q2a1text
XYZ4Q3qtext3q3a2q3a2text
XYZ5Q1qtext1q1a3q1a3text
XYZ5Q2qtext2q2a1q2a1text
XYZ6Q2qtext2q2a3q2a3text
XYZ6Q3qtext3q3a1q3a1text
XYZ7Q1qtext1q1a2q1a2text
XYZ7Q3qtext3q3a2q3a2text
XYZ8Q1qtext1q1a1q1a1text
XYZ8Q2qtext2q2a2q2a2text
XYZ8Q3qtext3q3a1q3a1text

 

Responses Table:

 

SurveyIDSurveyNameUserIDResponseID
SV_1234survey1ABC1XYZ1
SV_1234survey1ABC4XYZ2
SV_1234survey1ABC2XYZ3
SV_1234survey1ABC3XYZ4
SV_5678survey2ABC1XYZ5
SV_5678survey2ABC4XYZ6
SV_5678survey2ABC3XYZ7
SV_9821survey3ABC1XYZ8
Anonymous
Not applicable

Hey, I can't fix this problem yet. Is there anyone to help me? I can't find anything about this problem on the web. I know it's very complicated but I think it can be fixed by "power bi" experts.

Anonymous
Not applicable

Hi There,

 

@Greg_Deckler  helped me and I have found participating users both one more survey like this:

 

Count of Cohort 7c = 
    VAR __tmpTable1 = 
        CALCULATETABLE(
            GENERATE(
                DISTINCT('Table (7)'[UserID]),
                EXCEPT(
                    DISTINCT('Table (7)'[SurveyName]),
                    CALCULATETABLE(DISTINCT('Table (7)'[SurveyName]))
                )
            ),
            REMOVEFILTERS('Table (7)'[AnswerText])
        )
    VAR __tmpTable2 = SUMMARIZE(__tmpTable1,[UserID])
    VAR __tmpTable3 = EXCEPT(DISTINCT('Table (7)'[UserID]),__tmpTable2)
    VAR __CountMax = COUNTROWS(__tmpTable3)

    VAR __Survey = SELECTCOLUMNS('Table (7b)',"__SurveyName",[SurveyName])
    VAR __Question = SELECTCOLUMNS('Table (7a)',"__QuestionText",[QuestionText])
    VAR __tmpTable4 = DISTINCT(SELECTCOLUMNS(FILTER('Table (7)',[SurveyName] IN __Survey && [QuestionText] IN __Question),"UserID",[UserID]))
    VAR __tmpTable5 = FILTER(__tmpTable4,[UserID] IN __tmpTable3)
    VAR __Count = COUNTROWS(__tmpTable5)
RETURN
    IF(ISBLANK(COUNTROWS(__tmpTable4)),BLANK(),IF(__Count > __CountMax,__CountMax,__Count))

 

However, when I want to see the answers of users participating in more than one survey on the line chart on the basis of the survey, it shows me the distribution of the answers of all the users who participated in the relevant surveys. I've tried many things, but isn't there a solution?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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