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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
JustinDoh1
Post Prodigy
Post Prodigy

Percentage value in a separate column

This is similar question from my previous post, but has different column structure.

I am sharing my Pbix file here.

 

I am trying to come up with the Percentage of addition of these two columns (Percentage Qualified A & Percentage Qualified B) divide by Total as displayed in below:

 

JustinDoh1_1-1633387102963.png

 

So, expected output is having a separate column of "Percentage".

 

I have unpivotted the value from original file structure so, now it has one column of Attribute and one column of its Value.

JustinDoh1_2-1633387280864.png

 

I have a measure like this:

% Qualified_M =

    DIVIDE (

             CALCULATE ( COUNT ( vw_staff_summary_covid19_rpt[Client_ID] ),
           vw_staff_summary_covid19_rpt[Value]
          IN {
                 "Percentage Qualified A", "Percentage Qualified B"
               } 
),

CALCULATE ( COUNT ( vw_staff_summary_covid19_rpt[Client_ID] ),
                         REMOVEFILTERS (
                           vw_staff_summary_covid19_rpt[Value]
                             )
                    )
)

 

I am not sure how to modify this measure to show a separate column of %.

 

Thanks.

1 ACCEPTED SOLUTION
smpa01
Super User
Super User

@JustinDoh1  you can use the followine measure

 

 

Measure =
DIVIDE (
    CALCULATE (
        COUNT ( vw_staff_summary_covid19_rpt[Client_ID] ),
        FILTER (
            VALUES ( vw_staff_summary_covid19_rpt[Value] ),
            vw_staff_summary_covid19_rpt[Value] = "Percentage Qualified A"
                || vw_staff_summary_covid19_rpt[Value] = "Percentage Qualified B"
        )
    ),
    CALCULATE ( COUNT ( vw_staff_summary_covid19_rpt[Value] ) )
)

 

 

 

smpa01_1-1633389116557.png

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

4 REPLIES 4
JustinDoh1
Post Prodigy
Post Prodigy

@smpa01 Thank for help.

How do I keep the current column structures and add the percentage as a new column?

Should I change the structure of data somehow?

 

JustinDoh1_0-1633390527618.png

JustinDoh1_1-1633390577933.png

It appears that when I tried the measure, it goes under the row of Count of Client_ID.

JustinDoh1_2-1633390864042.png

 

 

@JustinDoh1 you need to write explicit measures and use that explicit measures in values. You can't have anything as Columns. Whatever you are currently showing under columns, you need to convert each of them into measures.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

@smpa01 Thank you for your lead. Learned new concept today. Let me try and see if I could convert the values in to explicit measures. I have been trying with "unpivoting" colume of data recently, and I am wondering how I should strucutre the data now (in order to create "explicit measure").

smpa01
Super User
Super User

@JustinDoh1  you can use the followine measure

 

 

Measure =
DIVIDE (
    CALCULATE (
        COUNT ( vw_staff_summary_covid19_rpt[Client_ID] ),
        FILTER (
            VALUES ( vw_staff_summary_covid19_rpt[Value] ),
            vw_staff_summary_covid19_rpt[Value] = "Percentage Qualified A"
                || vw_staff_summary_covid19_rpt[Value] = "Percentage Qualified B"
        )
    ),
    CALCULATE ( COUNT ( vw_staff_summary_covid19_rpt[Value] ) )
)

 

 

 

smpa01_1-1633389116557.png

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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