Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I have two columns like below (image 1), and I want to present in a report like in the image2
Image1
Image 2
hope you get the idea of what I want to achieve, if not please let me know I can explain.
Solved! Go to Solution.
Hi, @amalrio
It’s my pleasure to answer for you.
According to your description,If you don’t want to change the data model, you can create a measure(Combine strings by way of newlines) to meet your requirement.
Like this:
Measure = CONCATENATEX(FILTER('Table',[text]<>""),[text],"
")
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @amalrio
It’s my pleasure to answer for you.
According to your description,If you don’t want to change the data model, you can create a measure(Combine strings by way of newlines) to meet your requirement.
Like this:
Measure = CONCATENATEX(FILTER('Table',[text]<>""),[text],"
")
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot, this works perfect,
I will accpe this as a solution, also would there be a way I can sort my column order by default it comes as Base Case, Clouser and Optionality,
But I want the column in below order,
Base Case, Optionality and Clouser, I have an ID for each of these ones but when I try to sort by in the data model it gives me error of not unique values (which is correst as I have multiple values of those names,) is there a way to overcome this sorting issue.,
Thanks heaps
Hi, @amalrio
You can add a new custom column in pq to sort.
Try like this:
let
l = List.Sort( List.Distinct(#"Changed Type"[Name])),
tab = Table.FromList(l, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
newtab = Table.AddIndexColumn(tab, "Index", 1, 1, Int64.Type),
i1 = Table.Max(Table.SelectRows(newtab,each [Index]=1),"Index")[Column1],
i2 = Table.Max(Table.SelectRows(newtab,each [Index]=2),"Index")[Column1],
i3 = Table.Max(Table.SelectRows(newtab,each [Index]=3),"Index")[Column1],
i4 = Table.Max(Table.SelectRows(newtab,each [Index]=4),"Index")[Column1],
x =
Table.Combine({
Table.SelectRows(#"Changed Type",each [Name]=i1),
Table.SelectRows(#"Changed Type",each [Name]=i3),
Table.SelectRows(#"Changed Type",each [Name]=i2),
Table.SelectRows(#"Changed Type",each [Name]=i4)
})
in x
Here is my sample .pbix file. Hope it helps.
Best Regards
Janey Guo
@amalrio , try to pivot or transpose the table in edit query mode.
https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/
video: https://www.youtube.com/watch?v=oKByyI09Bno
https://www.youtube.com/watch?v=I91NXohXl-o
My data is the way I want, it is a matter of how do I put a text into a value section of a matrix
User | Count |
---|---|
140 | |
113 | |
104 | |
76 | |
63 |
User | Count |
---|---|
135 | |
126 | |
110 | |
70 | |
61 |