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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Help Creating Percentages Column

I have an issue where I am trying to create a matrix with a % column of user login per computer, see below.

lordbyronxxiv_0-1647464787480.png

My problem is that I tried to create a measure with this formula

lordbyronxxiv_1-1647464948815.png

However I had to change SUM to COUNT because it is a string field. this did not give me the proper output. I tried to create a measure that provided the COUNT or the string field, to give me a numerical output, however the SUM function would not accept that field as a parameter.  The output I need is a matrix like above but if a computer has 2 logins each would say 50%. Any help is appreciated.

4 REPLIES 4
Whitewater100
Solution Sage
Solution Sage

Hello:

Can you try this in your data view? The middle icon on the right side. Then see image below:

Whitewater100_1-1647473608616.png

 

 

Whitewater100_0-1647473556877.png

Where it says Data Type and has text now, change it to whole number. I just did this for this example.

 

Then you should be in business to use your measure.

 

I hope this works for you!

Anonymous
Not applicable

Unforntunately that will not work, this is what the data in the table looks like

lordbyronxxiv_0-1647522612834.png

So as you can see, the field I am counting is not a numerical field, it is a list of user names, hence my issue.

You can use COUNT[Table loggins]

or COUNTROWS(TableName)

Those give numerical values.

Please provide file if you'd like to review. Thanks

Anonymous
Not applicable

Here is a sample workbook, as you will see, I tried several different calculated field, they either don't work or do not give the correct output. This is the output I am looking for

lordbyronxxiv_1-1647533481433.png

link to workbook
https://www.dropbox.com/s/2jtjfwbs4oeo3zl/Asset%20Assignment%20Test.pbix?dl=0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.