Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi fellow users of Power Bi,
I have a table lets say it contains 3 colums A, B and C and has the Following Values
A |B |C
Bo|1 |0
Bo|1 |0
Kik|2|3
-------
|4|3
But today in power bi when I use a "SUM" it shows it as follows:
A |B |C
Bo|2 |0
Kik|2|3
-------
|4|3
I Know I can add a unique ID column to the table and that it will turn out correctly and show ALL the rows, but I find it to be an ugly solution. How can I have it shows the totals at the bottom AND all the rows, without making some "Hack solution" if you get me 🙂
Best regards
Solved! Go to Solution.
Hi @Shamatix ,
There is no method could achieve this directly. So one workaround is that you could show detail data in table and show total in Card like below
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @Shamatix,
I assume you're plotting 'B' column in the visualization. Please right click on the column in Fields Pane and click on "Don't summarize".
If you use dont summarize I do not get the Total of the column at the bottom of the table which I want to have, but when I have "Sum" on, it hides some of the rows if I do not have a unique value..
I hope this screenshot illustrates what I want and what it does now
Hi @Shamatix ,
I think this is by design, if there is no unique id, it will show value as a group when you use aggregation or you will see all value but no total value. So I think current workaround is that you add an unique column before.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlTSUTJUitWBsIzArCQgywTMSoaLpUDUxQIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [name = _t, amount = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"name", type text}, {"amount", Int64.Type}}),
#"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1)
in
#"Added Index"
By the way, you also could submit this requirement in power-bi-ideas
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Well the table it self has a unique ID, but I dont want the unique ID shown in the table im trying to show the end user as they have nothing to use the ID column for?
Hi @Shamatix ,
There is no method could achieve this directly. So one workaround is that you could show detail data in table and show total in Card like below
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What should Actually it display.
If you are looking for B =3
Try this
sumx(summarize(table,table[A],"_B",max(table[b])),[_B])
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
Well I want it to continue showing the total at the bottom of the table, so the total is correct.
My issue is that when you use a SUM on a column and the rows dont have a "Unique" value it hides some of the rows.
User | Count |
---|---|
93 | |
83 | |
77 | |
75 | |
66 |
User | Count |
---|---|
115 | |
105 | |
93 | |
65 | |
60 |