I have a table like below
server1, server2, server3
server4, server5, server6
I want results as below using either a measure or custom column in powerBI desktop
server1, server2, server3 3
server4, server5 2
I can easily do the above in tsql. How do I achieve the same in PowerBI ?
Appreciate your help.
Solved! Go to Solution.
Hello, For some reason i get a DAX error attempting to do this.
I have 3 items coming from A SharePoint list - GH, CGO, FUE
It can be any combination of the 3, and they are seperated by a Comma.
I wish to sum the amount the user selected in the multi choice.
e.g GH = 1 // GH,CGO = 2 // GH,CGO,FUE = 3.
many thanks, and sorry I'm a newbie!
i got it working with this:
BLActualCount = LEN('Regional Audit Tracker'[BL Auditing])-LEN(SUBSTITUTE('Regional Audit Tracker'[BL Auditing],",",""))+1
This works well but the column I am working on has null values and the count for them is showing as "1" as well. Is there a sightly different DAX expression where the count of the null values is zero? Any solution would be helpful
In general, you would do a split of that column in Power Query and then unpivot the resulting columns and then you could count them relatively easily in DAX. As it is, you will likely have much better luck counting them in "M" Power Query code than in DAX.
For example, you could do a Text.Split to return a List of values and then just a List.Count to count the items in it. For example, if you had a column called "servernames", you should be able to create a custom column in Power Query like:
Check out new user group experience and if you are a leader please create your group!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks
Check out how to claim yours today!