The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a table like below. I want to get the percentile of "Value". It equals to get the percentile of "1,1,1,1,1,2,2,2,3,3,3,3". But from the table, how can I make it?
Value Freq
1 | 5 |
2 | 3 |
3 | 4 |
Do you want to add up the values for each frequency, and then get the percent that total value is of the total for all the frequencies ?
Help when you know. Ask when you don't!
No, the purpose is to see the value number distribution.
Oh, I missed that.
This function could be used to get those results perhaps
REPT(<text>, <num_times>)
I'm a personal Power Bi Trainer I learn something every time I answer a question. I blog at http://powerbithehardparts.com/
The Golden Rules for Power BI
Help when you know. Ask when you don't!
REPT() only concatenate the string. For example REPT(1,5)=11111.
You can duplicate a column value and add a separator
if you do that in a calculated column you can use CONCATENATEX() to combine the values
Concatenates the result of an expression evaluated for each row in a table.
CONCATENATEX(<table>, <expression>, [delimiter])
table | The table containing the rows for which the expression will be evaluated. |
expression | The expression to be evaluated for each row of the table. |
delimiter | (optional) A separator to use during concatenation. |
A text string.
This function takes as its first argument a table or an expression that returns a table. The second argument is a column that contains the values you want to concatenate, or an expression that returns a value.
Employees table
Alan | Brewer |
Michael | Blythe |
CONCATENATEX(Employees, [FirstName] & “ “ & [LastName], “,”)
Returns "Alan Brewer, Michael Blythe"
as the example shows you can skip the first step of doing a column and do the REPT() as part of the CONCATENATEX() function.
Help when you know. Ask when you don't!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
78 | |
76 | |
41 | |
37 |
User | Count |
---|---|
157 | |
114 | |
64 | |
60 | |
55 |