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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.