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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
darko861
Resolver II
Resolver II

Survey data percentage dax measure

Hi all,

 

I have the following data displayed in a table visual.

 

Question_Text# of EntriesSentimentPercent
Are you overall satisfied with the support you received for this case?4Excellent80%
Are you overall satisfied with the support you received for this case?1Poor20%
Are you satisfied with the resolution provided?4Excellent80%
Are you satisfied with the resolution provided?1OK20%
Do you think the time to resolve the case was reasonable?4Excellent80%
Do you think the time to resolve the case was reasonable?1Poor20%
Was the support consultant courteous & professional?5Excellent100%
Was the support technician knowledgeable?4Excellent80%
Was the support technician knowledgeable?1OK20%
Were you kept informed during the progress of the case?4Excellent80%
Were you kept informed during the progress of the case?1OK20%

 

I want to add a DAX measure called Percent as displayed above to give me the percentage distribution per question.

 

E.g. Question: Are you overall satisfied with the support you received for this case? 

 4 respondents answered Excellent which is 80 % and 1 respondent answered Poor which is 20 %.

 

How can I write this Dax Measure?

 

here is a sample file:

 

https://www.dropbox.com/s/abuu4wjzb9o5i41/Test1.pbix?dl=0

 

Thanks for your help 🙂

1 ACCEPTED SOLUTION

Base on the file it should be like this

Percent = 
VAR _CurrentEntries =
    [# of Entries]
VAR _AllEntries =
    CALCULATE(
        [# of Entries],
        ALLSELECTED( Satisfaction[Sentiment] )
    )
VAR _Result =
    DIVIDE(
        _CurrentEntries,
        _AllEntries
    )
RETURN
    _Result

PabloDeheza_0-1682519649397.png

 

View solution in original post

6 REPLIES 6
Rudy_D
Resolver I
Resolver I

Hi,

 

This should work :).

 

% = 
VAR total = CALCULATE(SUM(Feuil1[# of Entries]), ALLEXCEPT(Feuil1, Feuil1[Question_Text]))
RETURN
DIVIDE(SELECTEDVALUE(Feuil1[# of Entries]), total, 0)
Rudy_D_1-1682517881993.png

 

still doesn't work, but I have a sample file please see my original post

PabloDeheza
Solution Sage
Solution Sage

Hi @darko861 !
Try the following measure!

Percent = 
VAR _CurrentEntries =
    SUM( 'Table'[# of Entries] )
VAR _AllEntries =
    CALCULATE(
        SUM( 'Table'[# of Entries] ),
        ALLSELECTED( 'Table'[Sentiment] )
    )
VAR _Result =
    DIVIDE(
        _CurrentEntries,
        _AllEntries
    )
RETURN
    _Result

Let me know if that helps!

Doesn't work, I have a sample file please see the original post

Base on the file it should be like this

Percent = 
VAR _CurrentEntries =
    [# of Entries]
VAR _AllEntries =
    CALCULATE(
        [# of Entries],
        ALLSELECTED( Satisfaction[Sentiment] )
    )
VAR _Result =
    DIVIDE(
        _CurrentEntries,
        _AllEntries
    )
RETURN
    _Result

PabloDeheza_0-1682519649397.png

 

Thanks 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.